Actualiser vpc.tf
Some checks failed
Terraform Apply / Terraform Apply (push) Failing after 23s

This commit is contained in:
2025-08-07 13:42:54 +02:00
parent a0dce87015
commit 2995250eef

17
vpc.tf
View File

@@ -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" {