alicloud_ecd_bundle

Provides a ECD Bundle resource.

For information about ECD Bundle and how to use it, see What is Bundle.

Example Usage

Basic Usage

provider "alicloud" {
  region = "cn-hangzhou"
}

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

data "alicloud_ecd_images" "default" {
  image_type            = "SYSTEM"
  os_type               = "Windows"
  desktop_instance_type = "eds.hf.4c8g"
}

data "alicloud_ecd_desktop_types" "default" {
  instance_type_family = "eds.hf"
  cpu_count            = 4
  memory_size          = 8192
}

resource "alicloud_ecd_bundle" "default" {
  description                 = var.name
  desktop_type                = data.alicloud_ecd_desktop_types.default.ids.0
  bundle_name                 = var.name
  image_id                    = data.alicloud_ecd_images.default.ids.0
  user_disk_size_gib          = [70]
  root_disk_size_gib          = 80
  root_disk_performance_level = "PL1"
  user_disk_performance_level = "PL1"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Timeouts

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

Import

ECD Bundle can be imported using the id, e.g.

$ terraform import alicloud_ecd_bundle.example <id>