github.com/turtlemonvh/terraform@v0.6.9-0.20151204001754-8e40b6b855e8/website/source/docs/providers/aws/r/main_route_table_assoc.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_main_route_table_association"
     4  sidebar_current: "docs-aws-resource-main-route-table-assoc"
     5  description: |-
     6    Provides a resource for managing the main routing table of a VPC.
     7  ---
     8  
     9  # aws\_main\_route\_table\_<wbr>association
    10  
    11  Provides a resource for managing the main routing table of a VPC.
    12  
    13  ## Example Usage
    14  
    15  ```
    16  resource "aws_main_route_table_association" "a" {
    17      vpc_id = "${aws_vpc.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  * `vpc_id` - (Required) The ID of the VPC whose main route table should be set
    27  * `route_table_id` - (Required) The ID of the Route Table to set as the new
    28    main route table for the target VPC
    29  
    30  ## Attributes Reference
    31  
    32  The following attributes are exported:
    33  
    34  * `id` - The ID of the Route Table Association
    35  * `original_route_table_id` - Used internally, see __Notes__ below
    36  
    37  ## Notes
    38  
    39  On VPC creation, the AWS API always creates an initial Main Route Table. This
    40  resource records the ID of that Route Table under `original_route_table_id`.
    41  The "Delete" action for a `main_route_table_association` consists of resetting
    42  this original table as the Main Route Table for the VPC. You'll see this
    43  additional Route Table in the AWS console; it must remain intact in order for
    44  the `main_route_table_association` delete to work properly.