github.com/adamar/terraform@v0.2.2-0.20141016210445-2e703afdad0e/website/source/docs/providers/aws/r/route_table_assoc.html.markdown (about) 1 --- 2 layout: "aws" 3 page_title: "AWS: aws_route_table_association" 4 sidebar_current: "docs-aws-resource-route-table-assoc" 5 --- 6 7 # aws\_route\_table\_association 8 9 Provides a resource to create an association between a subnet and routing table. 10 11 ## Example Usage 12 13 ``` 14 resource "aws_route_table_association" "a" { 15 subnet_id = "${aws_subnet.foo.id}" 16 route_table_id = "${aws_route_table.bar.id}" 17 } 18 ``` 19 20 ## Argument Reference 21 22 The following arguments are supported: 23 24 * `subnet_id` - (Required) The subnet ID to create an association. 25 * `route_table_id` - (Required) The ID of the routing table to associate with. 26 27 ## Attributes Reference 28 29 The following attributes are exported: 30 31 * `id` - The ID of the association 32