mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-07-03 08:42:39 +00:00
Add import docs for 5 resource types.
This commit is contained in:
parent
33ae780cc5
commit
2a5450be6f
|
@ -17,7 +17,7 @@ Creates a dataset resource for Google BigQuery. For more information see
|
|||
|
||||
```hcl
|
||||
resource "google_bigquery_dataset" "default" {
|
||||
dataset_id = "test"
|
||||
dataset_id = "foo"
|
||||
friendly_name = "test"
|
||||
description = "This is a test description"
|
||||
location = "EU"
|
||||
|
@ -78,3 +78,11 @@ exported:
|
|||
|
||||
* `last_modified_time` - The date when this dataset or any of its tables was last modified,
|
||||
in milliseconds since the epoch.
|
||||
|
||||
## Import
|
||||
|
||||
BigQuery datasets can be imported using the `project` and `dataset_id`, e.g.
|
||||
|
||||
```
|
||||
$ terraform import google_bigquery_dataset.default gcp-project:foo
|
||||
```
|
||||
|
|
|
@ -43,3 +43,11 @@ exported:
|
|||
|
||||
* `self_link` - The URI of the created resource.
|
||||
* `address` - The IP of the created resource.
|
||||
|
||||
## Import
|
||||
|
||||
Addresses can be imported using the `name`, e.g.
|
||||
|
||||
```
|
||||
$ terraform import google_compute_address.default test-address
|
||||
```
|
||||
|
|
|
@ -59,7 +59,7 @@ resource "google_compute_instance_group_manager" "foobar" {
|
|||
}
|
||||
|
||||
resource "google_compute_autoscaler" "foobar" {
|
||||
name = "foobar"
|
||||
name = "scaler"
|
||||
zone = "us-central1-f"
|
||||
target = "${google_compute_instance_group_manager.foobar.self_link}"
|
||||
|
||||
|
@ -145,3 +145,11 @@ In addition to the arguments listed above, the following computed attributes are
|
|||
exported:
|
||||
|
||||
* `self_link` - The URL of the created resource.
|
||||
|
||||
## Import
|
||||
|
||||
Autoscalers can be imported using the `name`, e.g.
|
||||
|
||||
```
|
||||
$ terraform import google_compute_autoscaler.foobar scaler
|
||||
```
|
||||
|
|
|
@ -67,3 +67,11 @@ exported:
|
|||
that protects this resource.
|
||||
|
||||
* `self_link` - The URI of the created resource.
|
||||
|
||||
## Import
|
||||
|
||||
Disks can be imported using the `name`, e.g.
|
||||
|
||||
```
|
||||
$ terraform import google_compute_disk.default test-disk
|
||||
```
|
||||
|
|
|
@ -14,7 +14,7 @@ Manages a firewall resource within GCE.
|
|||
|
||||
```hcl
|
||||
resource "google_compute_firewall" "default" {
|
||||
name = "test"
|
||||
name = "test-firewall"
|
||||
network = "${google_compute_network.other.name}"
|
||||
|
||||
allow {
|
||||
|
@ -69,3 +69,12 @@ In addition to the arguments listed above, the following computed attributes are
|
|||
exported:
|
||||
|
||||
* `self_link` - The URI of the created resource.
|
||||
|
||||
|
||||
## Import
|
||||
|
||||
Firewalls can be imported using the `name`, e.g.
|
||||
|
||||
```
|
||||
$ terraform import google_compute_firewall.default test-firewall
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue
Block a user