alicloud_kvstore_instance_classes
更新时间:
This data source provides the KVStore instance classes resource available info of Alibaba Cloud.
-> NOTE: Available since v1.49.0+
Example Usage
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}"
}
Argument Reference
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
andPostPaid
. Default toPrePaid
.engine
- (Optional) Database type. Options areRedis
,Memcache
. Default toRedis
.engine_version
- (Optional) Database version required by the user. Value options of Redis can refer to the latest docs detail infoEngineVersion
. Value of Memcache should be empty.architecture
- (Optional) The KVStore instance system architecture required by the user. Valid values:standard
,cluster
andrwsplit
.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
andreadfive
.package_type
- (Optional, Deprecated) It has been deprecated from 1.68.0.output_file
- (Optional) File name where to save data source results (after runningterraform apply
).edition_type
- (Optional, Available since 1.68.0) The KVStore instance edition type required by the user. Valid values:Community
andEnterprise
.series_type
- (Optional, Available since 1.68.0) The KVStore instance series type required by the user. Valid values:enhanced_performance_type
andhybrid_storage
.shard_number
- (Optional, Available since 1.68.0) The number of shard.Valid values:1
,2
,4
,8
,16
,32
,64
,128
,256
.- product_type - (Optional, Available since 1.130.0) The type of the service. Valid values:
- Local: an ApsaraDB for Redis instance with a local disk.
- OnECS: an ApsaraDB for Redis instance with a standard disk. This type is available only on the Alibaba Cloud China site.
Attributes Reference
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 thesorted_by
is "Price". include:instance_class
- KVStore available instance class.
文档内容是否对您有帮助?