Smal modifications regarding the public route table
This commit is contained in:
parent
8c9f5ff23f
commit
a1b18bf141
2
main.tf
2
main.tf
@ -28,5 +28,5 @@ resource "aws_vpc_endpoint_route_table_association" "public_s3" {
|
||||
|
||||
vpc_endpoint_id = aws_vpc_endpoint.s3[0].id
|
||||
#route_table_id = aws_route_table.public[0].id
|
||||
route_table_id = var.public_route_table_id
|
||||
route_table_id = element(var.public_route_table_id, count.index)
|
||||
}
|
||||
|
||||
@ -9,9 +9,9 @@ variable "enable_s3_endpoint" {
|
||||
default = false
|
||||
}
|
||||
|
||||
variable "public_route_table_id" {
|
||||
variable "public_route_table_ids" {
|
||||
description = "Public route table of the VPC where then endpoint is located"
|
||||
type = string
|
||||
type = list(string)
|
||||
}
|
||||
|
||||
variable "private_route_table_id" {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user