Add option to set the name of a node group manually (#739)

This commit is contained in:
Matthias Splieth
2020-02-14 10:10:29 +01:00
committed by GitHub
parent a9c73b277e
commit 10ca272e5b
3 changed files with 3 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
resource "aws_eks_node_group" "workers" {
for_each = local.node_groups_expanded
node_group_name = join("-", [var.cluster_name, each.key, random_pet.node_groups[each.key].id])
node_group_name = lookup(each.value, "name", join("-", [var.cluster_name, each.key, random_pet.node_groups[each.key].id]))
cluster_name = var.cluster_name
node_role_arn = each.value["iam_role_arn"]