feat: Add instance tag specifications to Launch Template (#822)

This commit is contained in:
Ilya Nemakov
2020-03-30 19:27:56 +03:00
committed by GitHub
parent 4cc5753284
commit c8195c5348

View File

@@ -403,6 +403,21 @@ resource "aws_launch_template" "workers_launch_template" {
)
}
tag_specifications {
resource_type = "instance"
tags = merge(
{
"Name" = "${aws_eks_cluster.this[0].name}-${lookup(
var.worker_groups_launch_template[count.index],
"name",
count.index,
)}-eks_asg"
},
var.tags,
)
}
tags = var.tags
lifecycle {