Removed && length(var.public_subnets) from count statement in the public endpoint route table resource

This commit is contained in:
Patrick de Ruiter 2020-08-06 10:52:17 +02:00
parent 4433b3ebe7
commit 8c9f5ff23f

View File

@ -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