Skip to content

Commit

Permalink
Allow conditional creation of self_managed_node_group by passing crea…
Browse files Browse the repository at this point in the history
…te to the module
  • Loading branch information
PhilippMT committed Feb 6, 2022
1 parent 2a47dfe commit ca26d08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions node_groups.tf
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,8 @@ module "self_managed_node_group" {

for_each = { for k, v in var.self_managed_node_groups : k => v if var.create }

create = try(each.value.create, true)

cluster_name = aws_eks_cluster.this[0].name
cluster_ip_family = var.cluster_ip_family

Expand Down

0 comments on commit ca26d08

Please sign in to comment.