Skip to content

Commit

Permalink
feat: add name tag
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Lefevre <lefevre.kevin@gmail.com>
  • Loading branch information
ArchiFleKs committed Dec 8, 2020
1 parent cffcf57 commit 4812f88
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/node_groups/launchtemplate.tf
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ resource "aws_launch_template" "workers" {
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]))
}
)
}

Expand All @@ -77,6 +80,9 @@ resource "aws_launch_template" "workers" {
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]))
}
)
}

Expand Down

0 comments on commit 4812f88

Please sign in to comment.