alicloud_ens_disk

Provides a ENS Disk resource. The disk. When you use it for the first time, please contact the product classmates to add a resource whitelist.

For information about ENS Disk and how to use it, see What is Disk.

Example Usage

Basic Usage

variable "name" {
  default = "terraform-example"
}

resource "alicloud_ens_disk" "default" {
  category      = "cloud_ssd"
  size          = "20"
  payment_type  = "PayAsYouGo"
  ens_region_id = "cn-chongqing-11"
}

Argument Reference

The following arguments are supported:

The SnapshotId and Size parameters have the following limitations:

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

ENS Disk can be imported using the id, e.g.

$ terraform import alicloud_ens_disk.example <id>