Skip to content

Commit 92a7b74

Browse files
committed
NOTICKER: Fix condition in RT sys count
1 parent f8894eb commit 92a7b74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ resource "aws_route_table" "intra" {
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 ? 1 : 0
363363

364364
vpc_id = local.vpc_id
365365

0 commit comments

Comments
 (0)