Skip to content

Commit

Permalink
drop - from name prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
barryib committed May 19, 2021
1 parent 325f37c commit 71d234d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions modules/node_groups/node_groups.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
resource "aws_eks_node_group" "workers" {
for_each = local.node_groups_expanded

node_group_name_prefix = format("%s-", lookup(each.value, "name", join("-", [var.cluster_name, each.key])))

cluster_name = var.cluster_name
node_role_arn = each.value["iam_role_arn"]
subnet_ids = each.value["subnets"]
node_group_name_prefix = lookup(each.value, "name", join("-", [var.cluster_name, each.key]))
cluster_name = var.cluster_name
node_role_arn = each.value["iam_role_arn"]
subnet_ids = each.value["subnets"]

scaling_config {
desired_size = each.value["desired_capacity"]
Expand Down

0 comments on commit 71d234d

Please sign in to comment.