Skip to content

Commit

Permalink
fix: override the name_prefix for node_groups so they still have the …
Browse files Browse the repository at this point in the history
…az letter
  • Loading branch information
danielpanzella committed Oct 10, 2024
1 parent 2f0f12e commit 1fe589b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/app_eks/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ module "eks" {
node_groups = {
for idx, subnet in data.aws_subnet.private : "ng-${idx}" => {
subnets = [subnet.id]
name_prefix = "${var.namespace}-${regex(".*[[:digit:]]([[:alpha:]])", subnet.availability_zone)[0]}"
desired_capacity = var.min_nodes
max_capacity = var.max_nodes
min_capacity = var.min_nodes
Expand Down

0 comments on commit 1fe589b

Please sign in to comment.