alicloud_kvstore_zones
This data source provides availability zones for Tair (Redis OSS-Compatible) And Memcache (KVStore) that can be accessed by an Alibaba Cloud account within the region configured in the provider.
-> NOTE: Available since v1.73.0.
Example Usage
# Declare the data source
data "alicloud_kvstore_zones" "zones_ids" {
instance_charge_type = "PostPaid"
}
Argument Reference
The following arguments are supported:
-
multi
- (Optional) Indicate whether the zones can be used in a multi AZ configuration. Default tofalse
. Multi AZ is usually used to launch Tair (Redis OSS-Compatible) And Memcache (KVStore) instances. -
instance_charge_type
- (Optional) Filter the results by a specific instance charge type. Valid values:PrePaid
andPostPaid
. Default toPostPaid
. -
engine
- (Optional) Database type. Options areRedis
,Memcache
. Default toRedis
. -
product_type - (Optional, Available since v1.130.0+) The type of the service. Valid values:
Local
,Tair_rdb
,Tair_scm
,Tair_essd
,OnECS
. -
output_file
- (Optional) File name where to save data source results (after runningterraform plan
).
Attributes Reference
The following attributes are exported in addition to the arguments listed above:
ids
- A list of zone IDs.zones
- A list of availability zones. Each element contains the following attributes:id
- ID of the zone.multi_zone_ids
- A list of zone ids in which the multi zone.