github.com/lamielle/terraform@v0.3.2-0.20141121070651-81f008ba53d5/website/source/docs/providers/aws/r/route_table.html.markdown (about) 1 --- 2 layout: "aws" 3 page_title: "AWS: aws_route_table" 4 sidebar_current: "docs-aws-resource-route-table|" 5 description: |- 6 Provides a resource to create a VPC routing table. 7 --- 8 9 # aws\_route\_table 10 11 Provides a resource to create a VPC routing table. 12 13 ## Example Usage 14 15 ``` 16 resource "aws_route_table" "r" { 17 vpc_id = "${aws_vpc.default.id}" 18 route { 19 cidr_block = "10.0.1.0/24" 20 gateway_id = "${aws_internet_gateway.main.id}" 21 } 22 } 23 ``` 24 25 ## Argument Reference 26 27 The following arguments are supported: 28 29 * `vpc_id` - (Required) The ID of the routing table. 30 * `route` - (Optional) A list of route objects. Their keys are documented below. 31 32 Each route supports the following: 33 34 * `cidr_block` - (Required) The CIDR block of the route. 35 * `gateway_id` - (Optional) The Internet Gateway ID. 36 * `instance_id` - (Optional) The EC2 instance ID. 37 38 Each route must contain either a `gateway_id` or an `instance_id`. Note that the 39 default route, mapping the VPC's CIDR block to "local", is created implicitly and 40 cannot be specified. 41 42 ## Attributes Reference 43 44 The following attributes are exported: 45 46 * `id` - The ID of the routing table