Skip to content

Commit

Permalink
Fix default az configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ciiiii committed May 21, 2024
1 parent 69f74ae commit 927f2e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ data "aws_subnet" "private_subnets" {
}

locals {
node_group_subnets = [
node_group_subnets = length(var.node_pool_azs) != 0 ? [
for index, subnet in data.aws_subnet.private_subnets : subnet if contains(var.node_pool_azs, subnet.availability_zone)
]
] : data.aws_subnet.private_subnets
node_group_subnet_ids = [for index, subnet in local.node_group_subnets : subnet.id]
}

Expand Down

0 comments on commit 927f2e4

Please sign in to comment.