Created
November 18, 2021 21:59
-
-
Save NYARAS/eaacde184397cb35f44628723ca558d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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