alicloud_db_zones
更新時間:
This data source provides availability zones for RDS that can be accessed by an Alibaba Cloud account within the region configured in the provider.
-> NOTE: Available since v1.73.0.
Example Usage
data "alicloud_db_zones" "example" {
engine = "MySQL"
engine_version = "8.0"
instance_charge_type = "PostPaid"
category = "Basic"
db_instance_storage_type = "cloud_essd"
}
Argument Reference
The following arguments are supported:
multi
- (Deprecated) It has been deprecated from version 1.137.0 and usingmulti_zone
instead.multi_zone
- (Optional, Available in 1.137.0) Indicate whether the zones can be used in a multi AZ configuration. Default tofalse
. Multi AZ is usually used to launch RDS instances.instance_charge_type
- (ForceNew, Optional) Filter the results by a specific instance charge type. Valid values:PrePaid
andPostPaid
andServerless
. Default toPostPaid
.engine
- (ForceNew, Optional, Available in 1.134.0) Database type. Valid values: "MySQL", "SQLServer", "PostgreSQL", "MariaDB". If not set, it will match all of engines.engine_version
- (ForceNew, Optional, Available in 1.134.0) Database version required by the user. Value options can refer to the latest docs detail infoEngineVersion
.category
- (Optional, Available in 1.134.0) DB Instance category. the value like [Basic
,HighAvailability
,Finance
,AlwaysOn
,serverless_basic
,serverless_standard
,serverless_ha
,cluster
], detail info.db_instance_storage_type
- (Optional, Available in 1.134.0) The DB instance storage space required by the user. Valid values: "cloud_ssd", "local_ssd", "cloud_essd", "cloud_essd2", "cloud_essd3".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.
文檔內容是否對您有幫助?