github.com/armen/terraform@v0.5.2-0.20150529052519-caa8117a08f1/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  description: |-
     6    Provides a resource to create an association between a subnet and routing table.
     7  ---
     8  
     9  # aws\_route\_table\_association
    10  
    11  Provides a resource to create an association between a subnet and routing table.
    12  
    13  ## Example Usage
    14  
    15  ```
    16  resource "aws_route_table_association" "a" {
    17      subnet_id = "${aws_subnet.foo.id}"
    18      route_table_id = "${aws_route_table.bar.id}"
    19  }
    20  ```
    21  
    22  ## Argument Reference
    23  
    24  The following arguments are supported:
    25  
    26  * `subnet_id` - (Required) The subnet ID to create an association.
    27  * `route_table_id` - (Required) The ID of the routing table to associate with.
    28  
    29  ## Attributes Reference
    30  
    31  The following attributes are exported:
    32  
    33  * `id` - The ID of the association
    34