From 23e4543e7e057abf37a2a461c610c55a9f8760c9 Mon Sep 17 00:00:00 2001 From: Riley Karson Date: Fri, 16 Jun 2017 10:53:36 -0700 Subject: [PATCH] Update 5 more Import blocks. --- docs/r/compute_forwarding_rule.html.markdown | 10 +++++++++- docs/r/compute_global_address.html.markdown | 10 +++++++++- .../r/compute_http_health_check.html.markdown | 10 +++++++++- ...mpute_instance_group_manager.html.markdown | 20 +++++++++++++------ .../r/compute_instance_template.html.markdown | 14 ++++++++++--- 5 files changed, 52 insertions(+), 12 deletions(-) diff --git a/docs/r/compute_forwarding_rule.html.markdown b/docs/r/compute_forwarding_rule.html.markdown index a8c73518737..f4ab2b44fcf 100644 --- a/docs/r/compute_forwarding_rule.html.markdown +++ b/docs/r/compute_forwarding_rule.html.markdown @@ -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" } @@ -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 +``` diff --git a/docs/r/compute_global_address.html.markdown b/docs/r/compute_global_address.html.markdown index 3b7f4de2b99..231b0d5d93b 100644 --- a/docs/r/compute_global_address.html.markdown +++ b/docs/r/compute_global_address.html.markdown @@ -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" } ``` @@ -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 +``` diff --git a/docs/r/compute_http_health_check.html.markdown b/docs/r/compute_http_health_check.html.markdown index c5ee1375579..49f248fa664 100644 --- a/docs/r/compute_http_health_check.html.markdown +++ b/docs/r/compute_http_health_check.html.markdown @@ -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 @@ -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 +``` diff --git a/docs/r/compute_instance_group_manager.html.markdown b/docs/r/compute_instance_group_manager.html.markdown index b7d8c6cd910..9932669e7b2 100644 --- a/docs/r/compute_instance_group_manager.html.markdown +++ b/docs/r/compute_instance_group_manager.html.markdown @@ -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 { @@ -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 +``` diff --git a/docs/r/compute_instance_template.html.markdown b/docs/r/compute_instance_template.html.markdown index 78bd47bca42..6897e8d2fe1 100644 --- a/docs/r/compute_instance_template.html.markdown +++ b/docs/r/compute_instance_template.html.markdown @@ -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"] @@ -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 +```