github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/alicloud/r/vroute_entry.html.markdown (about)

     1  ---
     2  layout: "alicloud"
     3  page_title: "Alicloud: alicloud_route_entry"
     4  sidebar_current: "docs-alicloud-resource-route-entry"
     5  description: |-
     6    Provides a Alicloud Route Entry resource.
     7  ---
     8  
     9  # alicloud\_route\_entry
    10  
    11  Provides a route entry resource.
    12  
    13  ## Example Usage
    14  
    15  Basic Usage
    16  
    17  ```
    18  resource "alicloud_vpc" "vpc" {
    19    name       = "tf_test_foo"
    20    cidr_block = "172.16.0.0/12"
    21  }
    22  
    23  resource "alicloud_route_entry" "default" {
    24    router_id             = "${alicloud_vpc.default.router_id}"
    25    route_table_id        = "${alicloud_vpc.default.router_table_id}"
    26    destination_cidrblock = "${var.entry_cidr}"
    27    nexthop_type          = "Instance"
    28    nexthop_id            = "${alicloud_instance.snat.id}"
    29  }
    30  
    31  resource "alicloud_instance" "snat" {
    32    // ...
    33  }
    34  ```
    35  ## Argument Reference
    36  
    37  The following arguments are supported:
    38  
    39  * `router_id` - (Required, Forces new resource) The ID of the virtual router attached to Vpc.
    40  * `route_table_id` - (Required, Forces new resource) The ID of the route table.
    41  * `destination_cidrblock` - (Required, Forces new resource) The RouteEntry's target network segment.
    42  * `nexthop_type` - (Required, Forces new resource) The next hop type. Available value is Instance.
    43  * `nexthop_id` - (Required, Forces new resource) The route entry's next hop.
    44  
    45  ## Attributes Reference
    46  
    47  The following attributes are exported:
    48  
    49  * `router_id` - (Required, Forces new resource) The ID of the virtual router attached to Vpc.
    50  * `route_table_id` - (Required, Forces new resource) The ID of the route table.
    51  * `destination_cidrblock` - (Required, Forces new resource) The RouteEntry's target network segment.
    52  * `nexthop_type` - (Required, Forces new resource) The next hop type. Available value is Instance.
    53  * `nexthop_id` - (Required, Forces new resource) The route entry's next hop.