Skip to content

Commit 7ff885f

Browse files
committed
NOTICKET: Update number of RT to number of sys subnets
1 parent 92a7b74 commit 7ff885f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,11 +355,11 @@ resource "aws_route_table" "intra" {
355355

356356
################################################################################
357357
# Sys routes
358-
# There are as many routing tables as the number of NAT gateways
358+
# There are as many routing tables as the number of sys subnets
359359
################################################################################
360360

361361
resource "aws_route_table" "sys" {
362-
count = local.create_vpc && length(var.sys_subnets) > 0 ? 1 : 0
362+
count = local.create_vpc && length(var.sys_subnets) > 0 ? length(var.sys_subnets) : 0
363363

364364
vpc_id = local.vpc_id
365365

0 commit comments

Comments
 (0)