mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-11-13 14:43:29 +01:00
improvement: Tags passed into worker groups should also be excluded from Launch Template tag specification (#1095)
This commit is contained in:
1 parent
43101979ef
commit
63217467a9
1 file changed
+4
-1
@@ -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)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user