From a1b18bf1416104395af6555e8815eb8e2aa25117 Mon Sep 17 00:00:00 2001 From: Patrick de Ruiter Date: Thu, 6 Aug 2020 11:24:50 +0200 Subject: [PATCH] Smal modifications regarding the public route table --- main.tf | 2 +- variables.tf | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main.tf b/main.tf index b4127e7..05fa1ba 100644 --- a/main.tf +++ b/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) } diff --git a/variables.tf b/variables.tf index 1c58957..93897f3 100644 --- a/variables.tf +++ b/variables.tf @@ -9,12 +9,12 @@ 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" { description = "private route table of the VPC where then endpoint is located" type = list(string) -} \ No newline at end of file +}