The alicloud_emr_disk_types
data source provides a collection of data disk and
system disk types available in Alibaba Cloud account when create a emr cluster.
data "alicloud_emr_disk_types" "default" {
destination_resource = "DataDisk"
instance_charge_type = "PostPaid"
cluster_type = "HADOOP"
instance_type = "ecs.g5.xlarge"
zone_id = "cn-huhehaote-a"
}
output "data_disk_type" {
value = "${data.alicloud_emr_disk_types.default.types.0.value}"
}
The following arguments are supported:
destination_resource
- (Required) The destination resource of emr cluster instanceinstance_charge_type
- (Required) Filter the results by charge type. Valid values: PrePaid
and PostPaid
. Default to PostPaid
.cluster_type
- (Required) The cluster type of the emr cluster instance. Possible values: HADOOP
, KAFKA
, ZOOKEEPER
, DRUID
.instance_type
- (Required) The ecs instance type of create emr cluster instance.zone_id
- (Optional) The Zone to create emr cluster instance.output_file
- (Optional) File name where to save data source results (after running terraform plan
).The following attributes are exported in addition to the arguments listed above:
ids
- A list of data disk and system disk type IDs. types
- A list of emr instance types. Each element contains the following attributes:
value
- The value of the data disk or system diskmin
- The mininum value of the data disk to supported the specific instance typemax
- The maximum value of the data disk to supported the specific instance type