alicloud_route_tables

This data source provides a list of Route Tables owned by an Alibaba Cloud account.

Example Usage

variable "name" {
  default = "route-tables-datasource-example-name"
}

resource "alicloud_vpc" "foo" {
  cidr_block = "172.16.0.0/12"
  vpc_name   = "${var.name}"
}

resource "alicloud_route_table" "foo" {
  vpc_id           = "${alicloud_vpc.foo.id}"
  route_table_name = "${var.name}"
  description      = "${var.name}"
}

data "alicloud_route_tables" "foo" {
  ids = ["${alicloud_route_table.foo.id}"]
}

output "route_table_ids" {
  value = "${data.alicloud_route_tables.foo.ids}"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported in addition to the arguments listed above: