mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-23 09:51:04 +01:00
improvement: Tags passed into worker groups should also be excluded from Launch Template tag specification (#1095)
This commit is contained in:
@@ -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