mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-11-15 15:22:03 +01:00
feat: Add instance tag specifications to Launch Template (#822)
This commit is contained in:
1 parent
4cc5753284
commit
c8195c5348
1 file changed
+15
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user