Removed nat_gateway count

This commit is contained in:
Patrick de Ruiter 2020-08-05 13:28:41 +02:00
parent 324df722f1
commit e9bc6dacd7

View File

@ -16,7 +16,7 @@ resource "aws_vpc_endpoint" "s3" {
} }
resource "aws_vpc_endpoint_route_table_association" "private_s3" { resource "aws_vpc_endpoint_route_table_association" "private_s3" {
count = var.enable_s3_endpoint ? local.nat_gateway_count : 0 count = var.enable_s3_endpoint ? 1 : 0
vpc_endpoint_id = aws_vpc_endpoint.s3[0].id vpc_endpoint_id = aws_vpc_endpoint.s3[0].id
#route_table_id = element(aws_route_table.private.*.id, count.index) #route_table_id = element(aws_route_table.private.*.id, count.index)