alicloud_vpcs

The VPCs data source lists a number of VPCs resource information owned by an Alicloud account.

Example Usage

data "alicloud_vpcs" "multi_vpc"{
    cidr_block="172.16.0.0/12"
    status="Available"
    name_regex="^foo"
}

Argument Reference

The following arguments are supported:

  • cidr_block - (Optional) Limit search to specific cidr block,like "172.16.0.0/12".
  • status - (Optional) Limit search to specific status - valid value is "Pending" or "Available".
  • name_regex - (Optional) A regex string of VPC name.
  • is_default - (Optional) Whether the VPC is the default VPC in the specified region - valid value is true or false.
  • vswitch_id - (Optional) Retrieving VPC according to the specified VSwitch.
  • output_file - (Optional) The name of file that can save vpcs data source after running terraform plan.

Attributes Reference

The following attributes are exported:

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/alicloud/d/vpcs.html