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