-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathroute-table-association.tf
More file actions
35 lines (24 loc) · 930 Bytes
/
route-table-association.tf
File metadata and controls
35 lines (24 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
}