mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-19 07:53:46 +01:00
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:
9
local.tf
9
local.tf
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user