Skip to content

Commit 6d7b091

Browse files
steve-daveantonbabenko
authored andcommitted
Only create one public route association for s3 endpoint (terraform-aws-modules#73)
1 parent 007b41e commit 6d7b091

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
@@ -249,7 +249,7 @@ resource "aws_vpc_endpoint_route_table_association" "private_s3" {
249249
}
250250

251251
resource "aws_vpc_endpoint_route_table_association" "public_s3" {
252-
count = "${var.enable_s3_endpoint ? length(var.public_subnets) : 0}"
252+
count = "${var.enable_s3_endpoint ? 1 : 0}"
253253

254254
vpc_endpoint_id = "${aws_vpc_endpoint.s3.id}"
255255
route_table_id = "${aws_route_table.public.id}"

0 commit comments

Comments
 (0)