
This should have literally everything you need to run a single command and get all infra components live and ready for app deployment.
13 lines
337 B
HCL
13 lines
337 B
HCL
resource "aws_route_table" "app_route_table" {
|
|
vpc_id = aws_vpc.app_vpc.id
|
|
route {
|
|
cidr_block = "0.0.0.0/0"
|
|
gateway_id = aws_internet_gateway.app_gateway.id
|
|
}
|
|
}
|
|
|
|
resource "aws_route_table_association" "app_subnet_assoc" {
|
|
subnet_id = aws_subnet.app_public_subnet.id
|
|
route_table_id = aws_route_table.app_route_table.id
|
|
}
|