From d3642dffaf7d08806abd40377032d3dd7ef0c865 Mon Sep 17 00:00:00 2001 From: timepresent95 Date: Fri, 6 Dec 2024 17:49:22 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20public=20route=20table=20=EC=83=9D?= =?UTF-8?q?=EC=84=B1=20=EC=A1=B0=EA=B1=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.tf b/main.tf index 9f24ccd..8ea5789 100644 --- a/main.tf +++ b/main.tf @@ -48,15 +48,15 @@ resource "aws_route_table_association" "public_route_table_association" { for_each = aws_subnet.public subnet_id = each.value.id - route_table_id = aws_route_table.public.id + route_table_id = aws_route_table[0].public.id } resource "aws_route" "public_internet_gateway" { count = length(aws_subnet.public) == 0 ? 0 : 1 - route_table_id = aws_route_table.public.id + route_table_id = aws_route_table[0].public.id destination_cidr_block = "0.0.0.0/0" - gateway_id = aws_internet_gateway.ig.id + gateway_id = aws_internet_gateway[0].ig.id } /*