mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-17 00:57:28 +01:00
Add option to set the name of a node group manually (#739)
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user