Skip to content

Commit

Permalink
Merge pull request #49 from onetwopunch/33-target-tags
Browse files Browse the repository at this point in the history
Add tags as an output to ease integration
  • Loading branch information
morgante authored Dec 9, 2019
2 parents 3591872 + 12356a0 commit a8795e3
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions modules/instance_template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) |

<!-- 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 @@ -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
}
4 changes: 2 additions & 2 deletions modules/instance_template/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
}

0 comments on commit a8795e3

Please sign in to comment.