Skip to content

Commit fab60cd

Browse files
tpdownesg-awmalik
andauthored
feat: support self_link_unique output of instance template resource (#347)
Co-authored-by: Awais Malik <[email protected]>
1 parent 6f74715 commit fab60cd

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

modules/instance_template/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ See the [simple](../../examples/instance_template/simple) for a usage example.
6262
|------|-------------|
6363
| name | Name of instance template |
6464
| self\_link | Self-link of instance template |
65+
| self\_link\_unique | Unique self-link of instance template (recommended output to use instead of self\_link) |
6566
| tags | Tags that will be associated with instance(s) |
6667

6768
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

modules/instance_template/outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
* limitations under the License.
1515
*/
1616

17+
output "self_link_unique" {
18+
description = "Unique self-link of instance template (recommended output to use instead of self_link)"
19+
value = google_compute_instance_template.tpl.self_link_unique
20+
}
21+
1722
output "self_link" {
1823
description = "Self-link of instance template"
1924
value = google_compute_instance_template.tpl.self_link

0 commit comments

Comments
 (0)