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