Updated import documentation. (#156)

This commit is contained in:
Riley Karson 2017-06-27 07:07:47 -07:00 committed by Paul Stack
parent e2f05cba90
commit 3c7cdf0bb4
5 changed files with 45 additions and 5 deletions

View File

@ -13,13 +13,13 @@ Manages a network route within GCE.
## Example Usage
```hcl
resource "google_compute_network" "foobar" {
name = "test"
resource "google_compute_network" "default" {
name = "compute-network"
ipv4_range = "10.0.0.0/16"
}
resource "google_compute_route" "foobar" {
name = "test"
resource "google_compute_route" "default" {
name = "network-route"
dest_range = "15.0.0.0/24"
network = "${google_compute_network.foobar.name}"
next_hop_ip = "10.0.1.5"
@ -72,3 +72,11 @@ exported:
* `next_hop_network` - The name of the next hop network, if available.
* `self_link` - The URI of the created resource.
## Import
Network routes can be imported using the `name`, e.g.
```
$ terraform import google_compute_route.default network-route
```

View File

@ -19,7 +19,7 @@ and [API](https://cloud.google.com/compute/docs/reference/latest/targetPools).
```hcl
resource "google_compute_target_pool" "default" {
name = "test"
name = "instance-pool"
instances = [
"us-central1-a/myinstance1",
@ -73,3 +73,11 @@ In addition to the arguments listed above, the following computed attributes are
exported:
* `self_link` - The URI of the created resource.
## Import
Target pools can be imported using the `name`, e.g.
```
$ terraform import google_compute_target_pool.default instance-pool
```

View File

@ -44,3 +44,11 @@ exported:
* `name_servers` - The list of nameservers that will be authoritative for this
domain. Use NS records to redirect from your DNS provider to these names,
thus making Google Cloud DNS authoritative for this zone.
## Import
DNS managed zones can be imported using the `name`, e.g.
```
$ terraform import google_dns_managed_zone.prod prod-zone
```

View File

@ -101,3 +101,11 @@ the Google Cloud provider is configured with. If you're using the `id` field in
configurations, know that it is being ignored, and its value will always be seen as the
ID of the project being used to authenticate Terraform's requests. You should move to the
`project_id` field as soon as possible.
## Import
Projects can be imported using the `project_id`, e.g.
```
$ terraform import google_project.my_project your-project-id
```

View File

@ -86,3 +86,11 @@ exported:
* `self_link` - The URI of the created resource.
* `url` - The base URL of the bucket, in the format `gs://<bucket-name>`.
## Import
Storage buckets can be imported using the `name`, e.g.
```
$ terraform import google_storage_bucket.image-store image-store-bucket
```