diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d3e0f3d..b491c929 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +## [1.3.0] - 2019-12-09 + +### Added + +- Output for `tags` from `instance_template` [#33] ## [1.2.0] - 2019-11-28 diff --git a/modules/instance_template/README.md b/modules/instance_template/README.md index 9ff77478..b2412f8e 100644 --- a/modules/instance_template/README.md +++ b/modules/instance_template/README.md @@ -45,5 +45,6 @@ See the [simple](../../examples/instance_template/simple) for a usage example. |------|-------------| | name | Name of instance template | | self\_link | Self-link of instance template | +| tags | Tags that will be associated with instance(s) | diff --git a/modules/instance_template/outputs.tf b/modules/instance_template/outputs.tf index 8a70d0a6..cfc817da 100644 --- a/modules/instance_template/outputs.tf +++ b/modules/instance_template/outputs.tf @@ -23,3 +23,8 @@ output "name" { description = "Name of instance template" value = google_compute_instance_template.tpl.name } + +output "tags" { + description = "Tags that will be associated with instance(s)" + value = google_compute_instance_template.tpl.tags +} diff --git a/modules/instance_template/variables.tf b/modules/instance_template/variables.tf index 27456027..78a47112 100644 --- a/modules/instance_template/variables.tf +++ b/modules/instance_template/variables.tf @@ -170,9 +170,9 @@ variable "shielded_instance_config" { ########################### variable "access_config" { description = "Access configurations, i.e. IPs via which the VM instance can be accessed via the Internet." - type = list(object({ + type = list(object({ nat_ip = string network_tier = string })) - default = [] + default = [] } diff --git a/modules/preemptible_and_regular_instance_templates/variables.tf b/modules/preemptible_and_regular_instance_templates/variables.tf index 8aa9bbb4..478eb8d5 100644 --- a/modules/preemptible_and_regular_instance_templates/variables.tf +++ b/modules/preemptible_and_regular_instance_templates/variables.tf @@ -141,9 +141,9 @@ variable "service_account" { ########################### variable "access_config" { description = "Access configurations, i.e. IPs via which the VM instance can be accessed via the Internet." - type = list(object({ + type = list(object({ nat_ip = string network_tier = string })) - default = [] + default = [] }