We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f8894eb + 7ff885f commit e59212dCopy full SHA for e59212d
main.tf
@@ -355,11 +355,11 @@ resource "aws_route_table" "intra" {
355
356
################################################################################
357
# Sys routes
358
-# There are as many routing tables as the number of NAT gateways
+# There are as many routing tables as the number of sys subnets
359
360
361
resource "aws_route_table" "sys" {
362
- 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
363
364
vpc_id = local.vpc_id
365
0 commit comments