feat: Tags passed into worker groups override tags from var.tags for Autoscaling Groups (#1092)

NOTES: Tags that are passed into `var.worker_groups_launch_template` or `var.worker_groups` now override tags passed in via `var.tags` for Autoscaling Groups only. This allow ASG Tags to be overwritten, so that `propagate_at_launch` can be tweaked for a particular key.
This commit is contained in:
huddy
2020-11-07 21:20:22 +00:00
committed by GitHub
parent 3cb8fa3d87
commit bba7c151c8
5 changed files with 20 additions and 13 deletions

View File

@@ -1,13 +1,4 @@
locals {
asg_tags = [
for item in keys(var.tags) :
map(
"key", item,
"value", element(values(var.tags), index(keys(var.tags), item)),
"propagate_at_launch", "true"
)
if item != "Name"
]
cluster_security_group_id = var.cluster_create_security_group ? join("", aws_security_group.cluster.*.id) : var.cluster_security_group_id
cluster_primary_security_group_id = var.cluster_version >= 1.14 ? element(concat(aws_eks_cluster.this[*].vpc_config[0].cluster_security_group_id, list("")), 0) : null