From fab60cd66f1abed795acf4bfdf0098641bb510c1 Mon Sep 17 00:00:00 2001 From: Tom Downes Date: Wed, 20 Sep 2023 23:08:38 -0500 Subject: [PATCH] feat: support self_link_unique output of instance template resource (#347) Co-authored-by: Awais Malik --- modules/instance_template/README.md | 1 + modules/instance_template/outputs.tf | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/modules/instance_template/README.md b/modules/instance_template/README.md index 563b92d1..ce489f5f 100644 --- a/modules/instance_template/README.md +++ b/modules/instance_template/README.md @@ -62,6 +62,7 @@ See the [simple](../../examples/instance_template/simple) for a usage example. |------|-------------| | name | Name of instance template | | self\_link | Self-link of instance template | +| self\_link\_unique | Unique self-link of instance template (recommended output to use instead of self\_link) | | tags | Tags that will be associated with instance(s) | diff --git a/modules/instance_template/outputs.tf b/modules/instance_template/outputs.tf index cfc817da..aea1b3d7 100644 --- a/modules/instance_template/outputs.tf +++ b/modules/instance_template/outputs.tf @@ -14,6 +14,11 @@ * limitations under the License. */ +output "self_link_unique" { + description = "Unique self-link of instance template (recommended output to use instead of self_link)" + value = google_compute_instance_template.tpl.self_link_unique +} + output "self_link" { description = "Self-link of instance template" value = google_compute_instance_template.tpl.self_link