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

View File

@@ -274,6 +274,21 @@ resource "aws_launch_template" "workers_launch_template" {
}
}
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 {