alicloud_mongodb_zones

This data source provides availability zones for mongoDB that can be accessed by an Alibaba Cloud account within the region configured in the provider.

Example Usage

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

# Create an mongoDB instance with the first matched zone
resource "alicloud_mongodb_instance" "mongodb" {
    zone_id = data.alicloud_mongodb_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: