alicloud_disks

This data source provides the disks of the current Alibaba Cloud user.

Example Usage

data "alicloud_disks" "disks_ds" {
  name_regex = "sample_disk"
}

output "first_disk_id" {
  value = "${data.alicloud_disks.disks_ds.disks.0.id}"
}

Argument Reference

The following arguments are supported:

  data "alicloud_disks" "disks_ds" {
    tags = {
      tagKey1 = "tagValue1",
      tagKey2 = "tagValue2"
    }
  }

Attributes Reference

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