This data source provides the KVStore instance classes resource available info of Alibaba Cloud.
data "alicloud_zones" "resources" {
available_resource_creation = "KVStore"
}
data "alicloud_kvstore_instance_classes" "resources" {
zone_id = "${data.alicloud_zones.resources.zones.0.id}"
instance_charge_type = "PrePaid"
engine = "Redis"
engine_version = "5.0"
output_file = "./classes.txt"
}
output "first_kvstore_instance_class" {
value = "${data.alicloud_kvstore_instance_classes.resources.instance_classes}"
}
The following arguments are supported:
zone_id
- (Required) The Zone to launch the KVStore instance.instance_charge_type
- (Optional) Filter the results by charge type. Valid values: PrePaid
and PostPaid
. Default to PrePaid
.engine
- (Optional) Database type. Options are Redis
, Memcache
. Default to Redis
.engine_version
- (Optional) Database version required by the user. Value options of Redis can refer to the latest docs detail info EngineVersion
. Value of Memcache should be empty.architecture
- (Optional) The KVStore instance system architecture required by the user. Valid values: standard
, cluster
and rwsplit
.performance_type
- (Optional, Deprecated) It has been deprecated from 1.68.0. storage_type
- (Optional, Deprecated) It has been deprecated from 1.68.0. node_type
- (Optional) The KVStore instance node type required by the user. Valid values: double
, single
, readone
, readthree
and readfive
.package_type
- (Optional, Deprecated) It has been deprecated from 1.68.0.output_file
- (Optional) File name where to save data source results (after running terraform apply
).edition_type
- (Optional, Available since 1.68.0) The KVStore instance edition type required by the user. Valid values: Community
and Enterprise
.series_type
- (Optional, Available since 1.68.0) The KVStore instance series type required by the user. Valid values: enhanced_performance_type
and hybrid_storage
.shard_number
- (Optional, Available since 1.68.0) The number of shard.Valid values: 1
, 2
, 4
, 8
, 16
, 32
, 64
, 128
, 256
.The following attributes are exported in addition to the arguments listed above:
instance_classes
- A list of KVStore available instance classes.classes
- A list of KVStore available instance classes when the sorted_by
is "Price". include:
instance_class
- KVStore available instance class.