mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-20 16:43:46 +01: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:
committed by
Max Williams
parent
e876ce20b9
commit
52286a0065
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user