This data source operation to query the instance types that are available to specific instances of Alibaba Cloud.
data "alicloud_db_instance_class_infos" "resources" {
commodity_code = "bards"
order_type = "BUY"
output_file = "./classes.txt"
}
output "first_db_instance_class" {
value = "${data.alicloud_db_instance_class_infos.resources.infos.0}"
}
The following arguments are supported:
commodity_code
- (Required, ForceNew) The commodity code of the instance. Valid values:
order_type
- (Required, ForceNew) FThe type of order that you want to query. Valid values:
output_file
- (Optional) File name where to save data source results (after running terraform apply
).The following attributes are exported in addition to the arguments listed above:
ids
- A list of Rds instance class codes.infos
- A list of Rds available resource. Each element contains the following attributes:
class_code
- The code of the instance type.class_group
- The instance family of the instance.cpu
- The number of cores that are supported by the instance type. Unit: cores.max_connections
- The maximum number of connections that are supported by the instance type. Unit: connections.max_iombps
- The maximum I/O bandwidth that is supported by the instance type. Unit: Mbit/s.max_iops
- The maximum input/output operations per second (IOPS) that is supported by the instance type. Unit: operations per second.memory_class
- The memory capacity that is supported by the instance type. Unit: GB.-> NOTE:
If you set the CommodityCode parameter to a value that indicates the pay-as-you-go billing method, the ReferencePrice parameter specifies the hourly fee that you must pay.
If you set the CommodityCode parameter to a value that indicates the subscription billing method, the ReferencePrice parameter specifies the monthly fee that you must pay.
reference_price
- The fee that you must pay for the instance type. Unit: cent (USD).-> NOTE: If the architecture of the instance type is x86, an empty string is returned by default. If the architecture of the instance type is ARM, arm is returned.
instruction_set_arch
- The architecture of the instance type.