Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

improvement: Tags passed into worker groups should also be excluded from Launch Template tag specification #1095

Merged
merged 12 commits into from
Nov 12, 2020
5 changes: 4 additions & 1 deletion workers_launch_template.tf
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,10 @@ resource "aws_launch_template" "workers_launch_template" {
count.index,
)}-eks_asg"
},
var.tags,
{ for tag_key, tag_value in var.tags :
tag_key => tag_value
if tag_key != "Name" && ! contains([for tag in lookup(var.worker_groups_launch_template[count.index], "tags", local.workers_group_defaults["tags"]) : tag["key"]], tag_key)
}
)
}

Expand Down