mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-16 08:37:18 +01:00
feat: Add tags on network interfaces (#1362)
This commit is contained in:
@@ -98,6 +98,20 @@ resource "aws_launch_template" "workers" {
|
||||
)
|
||||
}
|
||||
|
||||
# Supplying custom tags to EKS instances ENI's
|
||||
tag_specifications {
|
||||
resource_type = "network-interface"
|
||||
|
||||
tags = merge(
|
||||
var.tags,
|
||||
lookup(var.node_groups_defaults, "additional_tags", {}),
|
||||
lookup(var.node_groups[each.key], "additional_tags", {}),
|
||||
{
|
||||
Name = lookup(each.value, "name", join("-", [var.cluster_name, each.key, random_pet.node_groups[each.key].id]))
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
# Tag the LT itself
|
||||
tags = merge(
|
||||
var.tags,
|
||||
|
||||
Reference in New Issue
Block a user