Skip to content

Commit a8795e3

Browse files
authored
Merge pull request #49 from onetwopunch/33-target-tags
Add tags as an output to ease integration
2 parents 3591872 + 12356a0 commit a8795e3

File tree

5 files changed

+15
-4
lines changed

5 files changed

+15
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this
66
project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
9+
## [1.3.0] - 2019-12-09
10+
11+
### Added
12+
13+
- Output for `tags` from `instance_template` [#33]
914

1015
## [1.2.0] - 2019-11-28
1116

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+
| 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 "tags" {
28+
description = "Tags that will be associated with instance(s)"
29+
value = google_compute_instance_template.tpl.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)