Skip to content

Commit

Permalink
Merge pull request hashicorp#120 from rileykarson/add-import-docs-1
Browse files Browse the repository at this point in the history
Add Import blocks to docs for 5 various resources
  • Loading branch information
stack72 authored Jun 16, 2017
2 parents 0ce2363 + 4551883 commit b292930
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 3 deletions.
10 changes: 9 additions & 1 deletion docs/r/bigquery_dataset.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
```
8 changes: 8 additions & 0 deletions docs/r/compute_address.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
10 changes: 9 additions & 1 deletion docs/r/compute_autoscaler.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down Expand Up @@ -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
```
8 changes: 8 additions & 0 deletions docs/r/compute_disk.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,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
```
11 changes: 10 additions & 1 deletion docs/r/compute_firewall.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
```

0 comments on commit b292930

Please sign in to comment.