Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
tkerdoncuff committed Feb 6, 2024
1 parent 0417b29 commit f71a43d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ resource "aws_route_table" "quortex_private" {

# Route to the NAT, if NAT is enabled...
dynamic "route" {
for_each = lookup(local.zoned_gateway_ids, each.value.availability_zone, "") != "" ? [1] : []
for_each = lookup(local.zoned_gateway_ids, each.value.availability_zone, null) != null ? [1] : []
iterator = nat_route

content {
Expand All @@ -131,12 +131,13 @@ resource "aws_route_table" "quortex_private" {

# ...otherwise, route to the Internet Gateway
dynamic "route" {
for_each = lookup(local.zoned_gateway_ids, each.value.availability_zone, "") != "" ? [] : [1]
for_each = lookup(local.zoned_gateway_ids, each.value.availability_zone, null) != null ? [] : [1]
iterator = igw_route

content {
cidr_block = "0.0.0.0/0"
gateway_id = aws_internet_gateway.quortex.id
#gateway_id = aws_internet_gateway.quortex.id
gateway_id = "igw-666666"
}
}

Expand Down

0 comments on commit f71a43d

Please sign in to comment.