This commit is contained in:
17
vpc.tf
17
vpc.tf
@@ -97,15 +97,20 @@ resource "aws_route" "public_internet_gateway" {
|
|||||||
|
|
||||||
destination_cidr_block = "0.0.0.0/0"
|
destination_cidr_block = "0.0.0.0/0"
|
||||||
gateway_id = aws_internet_gateway.igw.id
|
gateway_id = aws_internet_gateway.igw.id
|
||||||
|
|
||||||
|
tags = {
|
||||||
|
Name = "${var.environment}-public-route-table"
|
||||||
|
Environment = "${var.environment}"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Route for NAT Gateway
|
# Route for NAT Gateway
|
||||||
resource "aws_route" "private_internet_gateway" {
|
#resource "aws_route" "private_internet_gateway" {
|
||||||
route_table_id = aws_route_table.private.id
|
# route_table_id = aws_route_table.private.id
|
||||||
|
#
|
||||||
destination_cidr_block = "0.0.0.0/0"
|
# destination_cidr_block = "0.0.0.0/0"
|
||||||
gateway_id = aws_nat_gateway.nat.id
|
# gateway_id = aws_nat_gateway.nat.id
|
||||||
}
|
#}
|
||||||
|
|
||||||
# Route table associations for both Public subnet
|
# Route table associations for both Public subnet
|
||||||
resource "aws_route_table_association" "public" {
|
resource "aws_route_table_association" "public" {
|
||||||
|
Reference in New Issue
Block a user