Skip to content

Commit

Permalink
Merge pull request hashicorp#119 from rileykarson/update-existing-imp…
Browse files Browse the repository at this point in the history
…ort-docs

Update existing resources import docs
  • Loading branch information
stack72 authored Jun 16, 2017
2 parents b292930 + 9820a0f commit f589a77
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 24 deletions.
8 changes: 4 additions & 4 deletions docs/r/bigquery_table.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Creates a table resource in a dataset for Google BigQuery. For more information

```hcl
resource "google_bigquery_dataset" "default" {
dataset_id = "test"
dataset_id = "foo"
friendly_name = "test"
description = "This is a test description"
location = "EU"
Expand All @@ -30,7 +30,7 @@ resource "google_bigquery_dataset" "default" {
resource "google_bigquery_table" "default" {
dataset_id = "${google_bigquery_dataset.default.id}"
table_id = "test"
table_id = "bar"
time_partitioning {
type = "DAY"
Expand Down Expand Up @@ -106,8 +106,8 @@ exported:

## Import

Tables can be imported using ID of the table (`projectID`:`datasetID`.`tableID`), e.g.
BigQuery tables can be imported using the `project`, `dataset_id`, and `table_id`, e.g.

```
$ terraform import bigquery_table.default testproject:testdataset.testtable
$ terraform import google_bigquery_table.default gcp-project:foo.bar
```
6 changes: 3 additions & 3 deletions docs/r/compute_network.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Manages a network within GCE.

```hcl
resource "google_compute_network" "default" {
name = "test"
name = "foobar"
auto_create_subnetworks = "true"
}
```
Expand Down Expand Up @@ -63,5 +63,5 @@ exported:
Networks can be imported using the `name`, e.g.

```
$ terraform import google_compute_network.public my_network_name
```
$ terraform import google_compute_network.default foobar
```
3 changes: 1 addition & 2 deletions docs/r/compute_router.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,5 @@ exported:
Routers can be imported using the `region` and `name`, e.g.

```
$ terraform import google_compute_router.router-1 us-central1/router-1
$ terraform import google_compute_router.foobar us-central1/router-1
```

5 changes: 2 additions & 3 deletions docs/r/compute_router_interface.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ Only the arguments listed above are exposed as attributes.

## Import

Router interfaces can be imported using the `region`, `router` and `name`, e.g.
Router interfaces can be imported using the `region`, `router`, and `name`, e.g.

```
$ terraform import google_compute_router_interface.interface-1 us-central1/router-1/interface-1
$ terraform import google_compute_router_interface.foobar us-central1/router-1/interface-1
```

4 changes: 2 additions & 2 deletions docs/r/compute_router_peer.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ exported:

## Import

Router BGP peers can be imported using the `region`, `router` and `name`, e.g.
Router BGP peers can be imported using the `region`, `router`, and `name`, e.g.

```
$ terraform import google_compute_router_peer.peer-1 us-central1/router-1/peer-1
$ terraform import google_compute_router_peer.foobar us-central1/router-1/peer-1
```
14 changes: 4 additions & 10 deletions docs/r/sql_user.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,10 @@ The following arguments are supported:

Only the arguments listed above are exposed as attributes.

## Import Format
## Import

Importing an SQL user is formatted as:
SQL users can be imported using the `instance` and `name`, e.g.

```bash
terraform import google_sql_user.$RESOURCENAME $INSTANCENAME/$SQLUSERNAME
```

For example, the sample at the top of this page could be imported with:

```bash
terraform import google_sql_user.users master-instance/me
```
$ terraform import google_sql_user.users master-instance/me
```

0 comments on commit f589a77

Please sign in to comment.