Removed && length(var.public_subnets) from count statement in the public endpoint route table resource
This commit is contained in:
parent
4433b3ebe7
commit
8c9f5ff23f
2
main.tf
2
main.tf
@ -24,7 +24,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 ? 1 : 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 = aws_route_table.public[0].id
|
#route_table_id = aws_route_table.public[0].id
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user