Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
tkerdoncuff committed Jan 22, 2024
1 parent 6e62408 commit 63ceb59
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,8 @@ resource "aws_route_table" "quortex_private" {
for_each = local.enable_nat_gateway ? [1] : []

content {
cidr_block = "0.0.0.0/0"
#nat_gateway_id = aws_nat_gateway.quortex[index(aws_nat_gateway.quortex[*].availability_zone, each.value.availability_zone)].id
nat_gateway_id = aws_nat_gateway.quortex[index(aws_nat_gateway.quortex[*].tags["AvailabilityZone"], each.value.availability_zone)].id
cidr_block = "0.0.0.0/0"
nat_gateway_id = [for k, v in aws_nat_gateway.quortex : v.id if v.tags["AvailabilityZone"] == each.value.availability_zone][0]
}
}

Expand Down

0 comments on commit 63ceb59

Please sign in to comment.