From 2995250eefd5e221bc3a6a7f2b761f4904b6e784 Mon Sep 17 00:00:00 2001 From: Hubert Cornet Date: Thu, 7 Aug 2025 13:42:54 +0200 Subject: [PATCH] Actualiser vpc.tf --- vpc.tf | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/vpc.tf b/vpc.tf index e8e16b8..2260de5 100644 --- a/vpc.tf +++ b/vpc.tf @@ -97,15 +97,20 @@ resource "aws_route" "public_internet_gateway" { destination_cidr_block = "0.0.0.0/0" gateway_id = aws_internet_gateway.igw.id + + tags = { + Name = "${var.environment}-public-route-table" + Environment = "${var.environment}" + } } # Route for NAT Gateway -resource "aws_route" "private_internet_gateway" { - route_table_id = aws_route_table.private.id - - destination_cidr_block = "0.0.0.0/0" - gateway_id = aws_nat_gateway.nat.id -} +#resource "aws_route" "private_internet_gateway" { +# route_table_id = aws_route_table.private.id +# +# destination_cidr_block = "0.0.0.0/0" +# gateway_id = aws_nat_gateway.nat.id +#} # Route table associations for both Public subnet resource "aws_route_table_association" "public" {