Skip to content

Commit

Permalink
Merge pull request hashicorp#135 from rileykarson/import-docs-3
Browse files Browse the repository at this point in the history
Update 5 more importable resources' docs
  • Loading branch information
stack72 authored Jun 21, 2017
2 parents 7cec4f2 + 5fa4925 commit ce1aa3d
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 12 deletions.
10 changes: 9 additions & 1 deletion website/docs/r/compute_forwarding_rule.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ documentation](https://cloud.google.com/compute/docs/load-balancing/network/forw

```tf
resource "google_compute_forwarding_rule" "default" {
name = "test"
name = "website-forwarding-rule"
target = "${google_compute_target_pool.default.self_link}"
port_range = "80"
}
Expand Down Expand Up @@ -77,3 +77,11 @@ In addition to the arguments listed above, the following computed attributes are
exported:

* `self_link` - The URI of the created resource.

## Import

Forwarding rules can be imported using the `name`, e.g.

```
$ terraform import google_compute_forwarding_rule.default website-forwarding-rule
```
10 changes: 9 additions & 1 deletion website/docs/r/compute_global_address.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Creates a static IP address resource global to a Google Compute Engine project.

```hcl
resource "google_compute_global_address" "default" {
name = "test-address"
name = "global-appserver-ip"
}
```

Expand All @@ -41,3 +41,11 @@ exported:
* `address` - The assigned address.

* `self_link` - The URI of the created resource.

## Import

Global addresses can be imported using the `name`, e.g.

```
$ terraform import google_compute_global_address.default global-appserver-ip
```
10 changes: 9 additions & 1 deletion website/docs/r/compute_http_health_check.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ and

```hcl
resource "google_compute_http_health_check" "default" {
name = "test"
name = "authentication-health-check"
request_path = "/health_check"
timeout_sec = 1
Expand Down Expand Up @@ -64,3 +64,11 @@ In addition to the arguments listed above, the following computed attributes are
exported:

* `self_link` - The URI of the created resource.

## Import

HTTP health checks can be imported using the `name`, e.g.

```
$ terraform import google_compute_http_health_check.default authentication-health-check
```
20 changes: 14 additions & 6 deletions website/docs/r/compute_instance_group_manager.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,15 @@ and [API](https://cloud.google.com/compute/docs/instance-groups/manager/v1beta2/
## Example Usage

```hcl
resource "google_compute_instance_group_manager" "foobar" {
name = "terraform-test"
description = "Terraform test instance group manager"
resource "google_compute_instance_group_manager" "appserver" {
name = "appserver-igm"
base_instance_name = "foobar"
instance_template = "${google_compute_instance_template.foobar.self_link}"
base_instance_name = "app"
instance_template = "${google_compute_instance_template.appserver.self_link}"
update_strategy = "NONE"
zone = "us-central1-a"
target_pools = ["${google_compute_target_pool.foobar.self_link}"]
target_pools = ["${google_compute_target_pool.appserver.self_link}"]
target_size = 2
named_port {
Expand Down Expand Up @@ -98,3 +97,12 @@ exported:
* `instance_group` - The full URL of the instance group created by the manager.

* `self_link` - The URL of the created resource.


## Import

Instance group managers can be imported using the `name`, e.g.

```
$ terraform import google_compute_instance_group_manager.appserver appserver-igm
```
14 changes: 11 additions & 3 deletions website/docs/r/compute_instance_template.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ and
## Example Usage

```hcl
resource "google_compute_instance_template" "foobar" {
name = "terraform-test"
description = "template description"
resource "google_compute_instance_template" "default" {
name = "appserver-template"
description = "This template is used to create app server instances."
tags = ["foo", "bar"]
Expand Down Expand Up @@ -261,3 +261,11 @@ exported:

[1]: /docs/providers/google/r/compute_instance_group_manager.html
[2]: /docs/configuration/resources.html#lifecycle

## Import

Instance templates can be imported using the `name`, e.g.

```
$ terraform import google_compute_instance_template.default appserver-template
```

0 comments on commit ce1aa3d

Please sign in to comment.