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

This commit is contained in:
huddy
2020-11-12 09:17:55 +00:00
committed by GitHub
parent 43101979ef
commit 63217467a9

View File

@@ -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)
}
)
}