1
0
mirror of https://github.com/terraform-aws-modules/terraform-aws-eks.git synced 2025-09-09 19:32:58 +08:00

Support for tagging EBS Volumes created by "workers_launch_template*.tf" (#450)

* Added support to tag EBS volumes used by EKS nodes created by workers_launch_template*.tf

* Did terraform fmt on workers_launch_template*.tf
This commit is contained in:
Sergiu Plotnicu
2019-07-30 16:17:49 +03:00
committed by Max Williams
parent e876ce20b9
commit 52286a0065
3 changed files with 31 additions and 0 deletions
+15
View File
@@ -316,6 +316,21 @@ resource "aws_launch_template" "workers_launch_template_mixed" {
}
}
tag_specifications {
resource_type = "volume"
tags = merge(
{
"Name" = "${aws_eks_cluster.this.name}-${lookup(
var.worker_groups_launch_template[count.index],
"name",
count.index,
)}-eks_asg"
},
var.tags,
)
}
tags = var.tags
lifecycle {