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.

Example Usage

# Declare the data source
data "alicloud_db_zones" "zones_ids" {}

# Create an RDS instance with the first matched zone
resource "alicloud_db_instance" "db" {
    zone_id = ${data.alicloud_db_zones.zones_ids.zones.0.id}

  # Other properties...
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported in addition to the arguments listed above: