Skip to content

Commit

Permalink
feat: support self_link_unique output of instance template resource (#…
Browse files Browse the repository at this point in the history
…347)

Co-authored-by: Awais Malik <[email protected]>
  • Loading branch information
tpdownes and g-awmalik authored Sep 21, 2023
1 parent 6f74715 commit fab60cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/instance_template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
5 changes: 5 additions & 0 deletions modules/instance_template/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fab60cd

Please sign in to comment.