Skip to content

Commit cb0e677

Browse files
authored
fix: Allow instance Name tag to be overwritten (#1538)
1 parent 904ad94 commit cb0e677

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

modules/node_groups/launch_template.tf

+6-6
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ resource "aws_launch_template" "workers" {
8181

8282
tags = merge(
8383
var.tags,
84-
lookup(var.node_groups_defaults, "additional_tags", {}),
85-
lookup(var.node_groups[each.key], "additional_tags", {}),
8684
{
8785
Name = local.node_groups_names[each.key]
88-
}
86+
},
87+
lookup(var.node_groups_defaults, "additional_tags", {}),
88+
lookup(var.node_groups[each.key], "additional_tags", {})
8989
)
9090
}
9191

@@ -95,11 +95,11 @@ resource "aws_launch_template" "workers" {
9595

9696
tags = merge(
9797
var.tags,
98-
lookup(var.node_groups_defaults, "additional_tags", {}),
99-
lookup(var.node_groups[each.key], "additional_tags", {}),
10098
{
10199
Name = local.node_groups_names[each.key]
102-
}
100+
},
101+
lookup(var.node_groups_defaults, "additional_tags", {}),
102+
lookup(var.node_groups[each.key], "additional_tags", {})
103103
)
104104
}
105105

0 commit comments

Comments
 (0)