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