Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -355,11 +355,11 @@ resource "aws_route_table" "intra" {

################################################################################
# Sys routes
# There are as many routing tables as the number of NAT gateways
# There are as many routing tables as the number of sys subnets
################################################################################

resource "aws_route_table" "sys" {
count = local.create_vpc && local.max_subnet_length > 0 ? local.nat_gateway_count : 0
count = local.create_vpc && length(var.sys_subnets) > 0 ? length(var.sys_subnets) : 0

vpc_id = local.vpc_id

Expand Down