mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-11-15 23:22:05 +01:00
feat: Add ability to tag network-interface using Launch Template (#1563)
This commit is contained in:
1 parent
013afb0cc6
commit
7512f171c9
3 files changed
+43
No files matched your search
@@ -103,6 +103,20 @@ resource "aws_launch_template" "workers" {
|
||||
)
|
||||
}
|
||||
|
||||
# Supplying custom tags to EKS instances ENI's is another use-case for LaunchTemplates
|
||||
tag_specifications {
|
||||
resource_type = "network-interface"
|
||||
|
||||
tags = merge(
|
||||
var.tags,
|
||||
{
|
||||
Name = local.node_groups_names[each.key]
|
||||
},
|
||||
lookup(var.node_groups_defaults, "additional_tags", {}),
|
||||
lookup(var.node_groups[each.key], "additional_tags", {})
|
||||
)
|
||||
}
|
||||
|
||||
# Tag the LT itself
|
||||
tags = merge(
|
||||
var.tags,
|
||||
|
||||
Reference in new issue
Block a user