Removed nat_gateway count
This commit is contained in:
parent
324df722f1
commit
e9bc6dacd7
2
main.tf
2
main.tf
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user