From 8c9f5ff23f77262899abf7900dcf5552b1a2f649 Mon Sep 17 00:00:00 2001 From: Patrick de Ruiter Date: Thu, 6 Aug 2020 10:52:17 +0200 Subject: [PATCH] Removed && length(var.public_subnets) from count statement in the public endpoint route table resource --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index e5e8ca6..b4127e7 100644 --- a/main.tf +++ b/main.tf @@ -24,7 +24,7 @@ resource "aws_vpc_endpoint_route_table_association" "private_s3" { } resource "aws_vpc_endpoint_route_table_association" "public_s3" { - count = var.enable_s3_endpoint && length(var.public_subnets) > 0 ? 1 : 0 + count = var.enable_s3_endpoint ? 1 : 0 vpc_endpoint_id = aws_vpc_endpoint.s3[0].id #route_table_id = aws_route_table.public[0].id