Skip to content

Commit

Permalink
Merge pull request #11 from getndazn/name-tag
Browse files Browse the repository at this point in the history
Add name tag to instance tags for launch template
  • Loading branch information
Michał Wieczorek authored Jun 4, 2020
2 parents 0930d52 + fb410ab commit 7438646
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG/2020-06-04-name-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- type: changed
m: Add name tag to instance tags for launch template
owner: mwieczorek
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ resource "aws_launch_template" "bastion-service-host" {

tag_specifications {
resource_type = "instance"
tags = var.tags
tags = merge(var.tags, { "Name" : local.bastion_host_name })
}
tag_specifications {
resource_type = "volume"
Expand Down

0 comments on commit 7438646

Please sign in to comment.