diff --git a/main.tf b/main.tf index 661b9a5..69ca1fa 100644 --- a/main.tf +++ b/main.tf @@ -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 { @@ -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" } }