clippable/aws/infra/route-table.tf
shockrah 9775ae9cb7 + Simple example infrastructure built with Terraform
This should have literally everything you need to
run a single command and get all infra components
live and ready for app deployment.
2021-10-19 19:57:50 -07:00

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
}