Update existing resource's import docs to be consistent.

This commit is contained in:
Riley Karson 2017-06-13 17:02:27 -07:00
parent 33ae780cc5
commit 75c8c911b1
6 changed files with 16 additions and 24 deletions

View File

@ -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"
@ -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"
@ -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 bigquery_table.default gcp-project:foo.bar
```

View File

@ -14,7 +14,7 @@ Manages a network within GCE.
```hcl
resource "google_compute_network" "default" {
name = "test"
name = "foobar"
auto_create_subnetworks = "true"
}
```
@ -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
```

View File

@ -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
```

View File

@ -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
```

View File

@ -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
```

View File

@ -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
```