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.
1 parent 92a7b74 commit 7ff885fCopy full SHA for 7ff885f
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 && length(var.sys_subnets) > 0 ? 1 : 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