From 43977eb7584d9295ada7ec2d16c98ae921c08002 Mon Sep 17 00:00:00 2001 From: Tom Downes Date: Tue, 19 Sep 2023 21:11:54 +0000 Subject: [PATCH] feat: support self_link_unique output of instance template resource --- 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 31d8e5a5..4cbadf26 100644 --- a/modules/instance_template/README.md +++ b/modules/instance_template/README.md @@ -61,6 +61,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