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 }