» alicloud_route_table

Provides a route table resource to add customized route tables.

Currently, customized route tables are available in most regions apart from China (Beijing), China (Hangzhou), and China (Shenzhen) regions. For information about route table and how to use it, see What is Route Table.

» Example Usage

Basic Usage

resource "alicloud_vpc" "foo" {
  cidr_block = ""
  name       = "vpc-example-name"

resource "alicloud_route_table" "foo" {
  vpc_id      = "${alicloud_vpc.foo.id}"
  name        = "route-table-example-name"
  description = "route-table-example-description"

» Argument Reference

The following arguments are supported:

  • vpc_id - (Required, ForceNew) The vpc_id of the route table, the field can't be changed.
  • name - (Optional) The name of the route table.
  • description - (Optional) The description of the route table instance.
  • tags - (Optional, Available in v1.55.3+) A mapping of tags to assign to the resource.

» Attributes Reference

The following attributes are exported:

  • id - The ID of the route table instance id.

» Import

The route table can be imported using the id, e.g.

$ terraform import alicloud_route_table.foo vtb-abc123456