Skip to content

Commit e25cb35

Browse files
committed
Add tags as an output to ease integration
1 parent 3591872 commit e25cb35

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

modules/instance_template/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,6 @@ See the [simple](../../examples/instance_template/simple) for a usage example.
4545
|------|-------------|
4646
| name | Name of instance template |
4747
| self\_link | Self-link of instance template |
48+
| target\_tags | Tags that will be associated with instance(s) |
4849

4950
<!-- 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
@@ -23,3 +23,8 @@ output "name" {
2323
description = "Name of instance template"
2424
value = google_compute_instance_template.tpl.name
2525
}
26+
27+
output "target_tags" {
28+
description = "Tags that will be associated with instance(s)"
29+
value = var.tags
30+
}

modules/instance_template/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ variable "shielded_instance_config" {
170170
###########################
171171
variable "access_config" {
172172
description = "Access configurations, i.e. IPs via which the VM instance can be accessed via the Internet."
173-
type = list(object({
173+
type = list(object({
174174
nat_ip = string
175175
network_tier = string
176176
}))
177-
default = []
177+
default = []
178178
}

modules/preemptible_and_regular_instance_templates/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ variable "service_account" {
141141
###########################
142142
variable "access_config" {
143143
description = "Access configurations, i.e. IPs via which the VM instance can be accessed via the Internet."
144-
type = list(object({
144+
type = list(object({
145145
nat_ip = string
146146
network_tier = string
147147
}))
148-
default = []
148+
default = []
149149
}

0 commit comments

Comments
 (0)