Skip to content

Instantly share code, notes, and snippets.

@NYARAS
Created November 18, 2021 21:59
Show Gist options
  • Save NYARAS/eaacde184397cb35f44628723ca558d2 to your computer and use it in GitHub Desktop.
Save NYARAS/eaacde184397cb35f44628723ca558d2 to your computer and use it in GitHub Desktop.
resource "aws_route_table_association" "public1" {
# The subnet ID to create an association
subnet_id = aws_subnet.public_1.id
# The ID of the routing table to associate with
route_table_id = aws_route_table.public.id
}
resource "aws_route_table_association" "public2" {
# The subnet ID to create an association
subnet_id = aws_subnet.public_2.id
# The ID of the routing table to associate with
route_table_id = aws_route_table.public.id
}
resource "aws_route_table_association" "private1" {
# The subnet ID to create an association
subnet_id = aws_subnet.private_1.id
# The ID of the routing table to associate with
route_table_id = aws_route_table.private1.id
}
resource "aws_route_table_association" "private2" {
# The subnet ID to create an association
subnet_id = aws_subnet.private_2.id
# The ID of the routing table to associate with
route_table_id = aws_route_table.private2.id
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment