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
  • Loading branch information
tpdownes committed Sep 19, 2023
1 parent 85fd51e commit 43977eb
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 @@ -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) |

<!-- 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 43977eb

Please sign in to comment.