Skip to content

Terraform data source scripts to get AZ (availability zones) global information for all Alibaba Cloud Database products.

License

Notifications You must be signed in to change notification settings

alibabacloud-howto/terraform-database-available-zones

Repository files navigation

Using Terraform to obtain available zones for Alibaba Cloud Database products on global regions

Using the terraform scripts under this folder can get the list of available zones for Alibaba Cloud Database products on regions globally.

Basic steps

  • Set up terraform CLI environment on your desktop. For the tutorial about how to setup Terraform CLI, you can refer to https://partners-intl.aliyun.com/help/doc-detail/91289.htm
  • Run alibabacloud-regions/main.tf ("terraform init", then "terraform apply") to get all regions on Alibaba Cloud globally
  • For each product, specify the region in provider section of the terraform scirpt, then run (("terraform init", then "terraform apply")) to get current available zones on a specific region, such as rds/main.tf, the list of available zones will be output to the *.txt file under the same folder. Some products support user-specified multiple AZ deployment, then there will be *-Available-Multi-AZ.txt file for user-specified multiple AZ deployment options. Otherwise, if the product supports single-AZ deployment or automatically multi-AZ deployment, there will be only 1 *.txt file for zones available for user-specified single AZ deployment options.

Products AZ description

Product Terraform scripts Availability Zone Description
RDS (MySQL, PostgreSQL, SQL Server) https://github.com/alibabacloud-howto/terraform-database-available-zones/blob/master/rds/main.tf Single-AZ or Multi-AZ deployment
Redis https://github.com/alibabacloud-howto/terraform-database-available-zones/blob/master/redis/main.tf Single-AZ or Multi-AZ deployment
MongoDB https://github.com/alibabacloud-howto/terraform-database-available-zones/blob/master/mongodb/main.tf Single-AZ or Multi-AZ deployment
PolarDB https://github.com/alibabacloud-howto/terraform-database-available-zones/blob/master/polardb/main.tf PolarDB manages the multi-AZ deployment automatically, which could not be specified by user.
AnalyticDB for MySQL https://github.com/alibabacloud-howto/terraform-database-available-zones/blob/master/analyticdb-mysql/main.tf AnalyticDB MySQL manages the multi-AZ deployment automatically, which could not be specified by user.
AnalyticDB for PostgreSQL https://github.com/alibabacloud-howto/terraform-database-available-zones/blob/master/analyticdb-postgresql/main.tf AnalyticDB PostgreSQL manages the multi-AZ deployment automatically, which could not be specified by user.
HBase https://github.com/alibabacloud-howto/terraform-database-available-zones/blob/master/hbase/main.tf HBase manages the multi-AZ deployment automatically, which could not be specified by user.
Cassandra https://github.com/alibabacloud-howto/terraform-database-available-zones/blob/master/cassandra/main.tf Cassandra manages the multi-AZ deployment automatically, which could not be specified by user.
ClickHouse https://github.com/alibabacloud-howto/terraform-database-available-zones/blob/master/clickhouse/main.tf Cassandra manages the multi-AZ deployment automatically, which could not be specified by user.
TSDB/InfluxDB https://github.com/alibabacloud-howto/terraform-database-available-zones/blob/master/tsdb/main.tf TSDB/InfluxDB manages the multi-AZ deployment automatically, which could not be specified by user.

About

Terraform data source scripts to get AZ (availability zones) global information for all Alibaba Cloud Database products.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published