Smal modifications regarding the public route table
This commit is contained in:
parent
a1b18bf141
commit
0b0e50dfab
4
main.tf
4
main.tf
@ -20,7 +20,7 @@ resource "aws_vpc_endpoint_route_table_association" "private_s3" {
|
|||||||
|
|
||||||
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)
|
||||||
route_table_id = element(var.private_route_table_id, count.index)
|
route_table_id = element(var.private_route_table_ids, count.index)
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_vpc_endpoint_route_table_association" "public_s3" {
|
resource "aws_vpc_endpoint_route_table_association" "public_s3" {
|
||||||
@ -28,5 +28,5 @@ resource "aws_vpc_endpoint_route_table_association" "public_s3" {
|
|||||||
|
|
||||||
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
|
||||||
route_table_id = element(var.public_route_table_id, count.index)
|
route_table_id = element(var.public_route_table_ids, count.index)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -14,7 +14,7 @@ variable "public_route_table_ids" {
|
|||||||
type = list(string)
|
type = list(string)
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "private_route_table_id" {
|
variable "private_route_table_ids" {
|
||||||
description = "private route table of the VPC where then endpoint is located"
|
description = "private route table of the VPC where then endpoint is located"
|
||||||
type = list(string)
|
type = list(string)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user