Skip to content

Commit 65f5e2e

Browse files
authored
fix: Don't add tags on network interfaces because it's not supported yet in terraform-provider-aws (#1407)
1 parent 3529cae commit 65f5e2e

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

modules/node_groups/launch_template.tf

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -99,20 +99,6 @@ resource "aws_launch_template" "workers" {
9999
)
100100
}
101101

102-
# Supplying custom tags to EKS instances ENI's
103-
tag_specifications {
104-
resource_type = "network-interface"
105-
106-
tags = merge(
107-
var.tags,
108-
lookup(var.node_groups_defaults, "additional_tags", {}),
109-
lookup(var.node_groups[each.key], "additional_tags", {}),
110-
{
111-
Name = local.node_groups_names[each.key]
112-
}
113-
)
114-
}
115-
116102
# Tag the LT itself
117103
tags = merge(
118104
var.tags,

workers_launch_template.tf

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -563,24 +563,6 @@ resource "aws_launch_template" "workers_launch_template" {
563563
)
564564
}
565565

566-
tag_specifications {
567-
resource_type = "network-interface"
568-
569-
tags = merge(
570-
{
571-
"Name" = "${coalescelist(aws_eks_cluster.this[*].name, [""])[0]}-${lookup(
572-
var.worker_groups_launch_template[count.index],
573-
"name",
574-
count.index,
575-
)}-eks_asg"
576-
},
577-
{ for tag_key, tag_value in var.tags :
578-
tag_key => tag_value
579-
if tag_key != "Name" && !contains([for tag in lookup(var.worker_groups_launch_template[count.index], "tags", local.workers_group_defaults["tags"]) : tag["key"]], tag_key)
580-
}
581-
)
582-
}
583-
584566
tags = var.tags
585567

586568
lifecycle {

0 commit comments

Comments
 (0)