Skip to content

Commit e59212d

Browse files
authored
Merge pull request #2 from jampp/NOTICKET-fix-sys-rt-condition-in-count
NOTICKET: Fix condition in RT sys count
2 parents f8894eb + 7ff885f commit e59212d

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 && local.max_subnet_length > 0 ? local.nat_gateway_count : 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)