feat: Tags passed into worker_groups_launch_template extend var.tags for the volumes (#1397)

This commit is contained in:
Olesia Ivanenko
2021-08-31 16:11:43 +03:00
committed by GitHub
parent e1f54ba73f
commit 8e1d5c11b7
3 changed files with 11 additions and 1 deletions

View File

@@ -547,6 +547,11 @@ resource "aws_launch_template" "workers_launch_template" {
)}-eks_asg"
},
var.tags,
{
for tag in lookup(var.worker_groups_launch_template[count.index], "tags", local.workers_group_defaults["tags"]) :
tag["key"] => tag["value"]
if tag["key"] != "Name" && tag["propagate_at_launch"]
}
)
}