Skip to content

Commit

Permalink
Do not override volumes Name tag and do not add tag if propagate_at_l…
Browse files Browse the repository at this point in the history
…aunch=false (terraform-aws-modules#5)

* feat: Tags passed into worker_groups_launch_template extend var.tags for the volumes
  • Loading branch information
lisfo4ka authored and Olesia Ivanenko committed Oct 28, 2021
1 parent 009d853 commit 6a7f106
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions workers_launch_template.tf
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ resource "aws_launch_template" "workers_launch_template" {
{
for tag in lookup(var.worker_groups_launch_template[count.index], "tags", local.workers_group_defaults["tags"]) :
tag["key"] => tag["value"]
if tag["key"] != "Name" && tag["propagate_at_launch"]
}
)
}
Expand Down

0 comments on commit 6a7f106

Please sign in to comment.