mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-04-10 19:16:50 +02: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,
|
count.index,
|
||||||
)}-eks_asg"
|
)}-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