Commit d6f1342a authored by Anton Babenko's avatar Anton Babenko

Make aws_vpc_endpoint_service conditional

parent be6220cf
......@@ -154,6 +154,8 @@ resource "aws_route" "private_nat_gateway" {
# VPC Endpoint for S3
######################
data "aws_vpc_endpoint_service" "s3" {
count = "${var.enable_s3_endpoint}"
service = "s3"
}
......
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