alicloud_ecd_bundle
更新时间:
Provides a ECD Bundle resource.
For information about ECD Bundle and how to use it, see What is Bundle.
-> NOTE: Available since v1.170.0.
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:
image_id
- (Required) The ID of the image.desktop_type
- (Required, ForceNew) The desktop type. You can callalicloud_ecd_desktop_types
to query desktop type.root_disk_size_gib
- (Required, ForceNew) The root disk size gib.user_disk_size_gib
- (Required, ForceNew) The size of the data disk. Currently, only one data disk can be set. Unit: GiB.- The size of the data disk that supports the setting corresponds to the specification. For more information, see Overview of Desktop Specifications.
- The data disk size (user_disk_size_gib) set in the template must be greater than the data disk size (data_disk_size) in the mirror.
root_disk_performance_level
- (Optional, ForceNew) The root disk performance level. Valid values:PL0
,PL1
,PL2
,PL3
.user_disk_performance_level
- (Optional, ForceNew) The user disk performance level. Valid values:PL0
,PL1
,PL2
,PL3
.language
- (Optional) The language. Valid values:zh-CN
,zh-HK
,en-US
,ja-JP
.bundle_name
- (Optional) The name of the bundle.description
- (Optional) The description of the bundle.
Attributes Reference
The following attributes are exported:
id
- The resource ID in terraform of Bundle.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 1 mins) Used when create the Bundle.update
- (Defaults to 1 mins) Used when update the Bundle.delete
- (Defaults to 1 mins) Used when delete the Bundle.
Import
ECD Bundle can be imported using the id, e.g.
$ terraform import alicloud_ecd_bundle.example <id>
文档内容是否对您有帮助?