Commit 6d7b0916 authored by Dave's avatar Dave Committed by Anton Babenko

Only create one public route association for s3 endpoint (#73)

parent 007b41ef
...@@ -249,7 +249,7 @@ resource "aws_vpc_endpoint_route_table_association" "private_s3" { ...@@ -249,7 +249,7 @@ resource "aws_vpc_endpoint_route_table_association" "private_s3" {
} }
resource "aws_vpc_endpoint_route_table_association" "public_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}" vpc_endpoint_id = "${aws_vpc_endpoint.s3.id}"
route_table_id = "${aws_route_table.public.id}" route_table_id = "${aws_route_table.public.id}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment