Skip to content

Commit

Permalink
Only create one public route association for s3 endpoint (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-dave authored and antonbabenko committed Feb 9, 2018
1 parent 007b41e commit 6d7b091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,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}"
count = "${var.enable_s3_endpoint ? 1 : 0}"

vpc_endpoint_id = "${aws_vpc_endpoint.s3.id}"
route_table_id = "${aws_route_table.public.id}"
Expand Down

0 comments on commit 6d7b091

Please sign in to comment.