Skip to content

Terraform samples and templates for Alibaba Cloud product, services and solutions.

Notifications You must be signed in to change notification settings

alibabacloud-howto/terraform-templates

Repository files navigation

terraform-templates

Terraform samples and templates for Alibaba Cloud product, services and solutions.


Terraform Getting Started

If you are the 1st time using Terraform, please download Terraform from here: https://www.terraform.io/downloads.html.

For different operating system, please refer to the following sections accordingly.

How to install Terraform on Windows?

Please visit: https://www.youtube.com/watch?v=ljYzclmsvF4

How to install Terraform on Linux?

Please visit: https://www.youtube.com/watch?v=fgSON_ILnLA

How to install Terraform on Mac OS?

Please visit: https://www.youtube.com/watch?v=q4WNdNtsuyE


How to get my cloud Access Key and Secret Key?

Since you need Access Key and Secret Key in Terraform to interact with Alibaba Cloud services, such as in the Terraform script main.tf, you may need to fill in with Access Key and Secret Key of your Alibaba Cloud account.

provider "alicloud" {
  #   access_key = "${var.access_key}"
  #   secret_key = "${var.secret_key}"
  region = "ap-southeast-1"
}

If you want to know how to get your Alibaba Cloud account Access Key and Secret Key, please refer to: https://www.youtube.com/watch?v=O0X02sPwHL8.


How to get the ID of Alibaba Cloud regions?

Please refer to: https://www.alibabacloud.com/help/doc-detail/40654.htm


How to get the AZ (Availability Zone) ID of Alibaba Cloud Database services?

Using Terraform to obtain available zones for Alibaba Cloud Database products on global regions: https://github.com/alibabacloud-howto/terraform-database-available-zones


Reference of Alibaba Cloud Database Instance Specification

Database Service Reference URL
RDS for MySQL primary instance https://www.alibabacloud.com/help/doc-detail/276975.htm
RDS for MySQL read-only instance https://www.alibabacloud.com/help/doc-detail/276980.htm
RDS for PostgreSQL primary instance https://www.alibabacloud.com/help/doc-detail/276990.htm
RDS for PostgreSQL read-only instance https://www.alibabacloud.com/help/doc-detail/276992.htm
RDS for SQL Server primary instance https://www.alibabacloud.com/help/doc-detail/276987.htm
RDS for SQL Server read-only instance https://www.alibabacloud.com/help/doc-detail/276988.htm
PolarDB for MySQL https://www.alibabacloud.com/help/doc-detail/102542.htm
PolarDB for PostgreSQL https://www.alibabacloud.com/help/doc-detail/173282.htm
PolarDB for Oracle https://www.alibabacloud.com/help/doc-detail/173281.htm
Redis instance https://www.alibabacloud.com/help/doc-detail/26350.htm
MongoDB instance https://www.alibabacloud.com/help/doc-detail/57141.htm
HBase instance https://www.alibabacloud.com/help/doc-detail/53532.htm
TSDB/InfluxDB instance Reference on Terraform document

Terraform Examples for Alibaba Cloud Database

Database Service Reference URL
image.png RDS MySQL https://github.com/alibabacloud-howto/terraform-templates/blob/master/terraform-alicloud-db-samples/rds-mysql-clouddisk/main.tf
image.png RDS MySQL (Primary Instance + Read Only Instance) https://github.com/alibabacloud-howto/terraform-templates/blob/master/terraform-alicloud-db-samples/rds-mysql-ro/main.tf
image.png RDS PostgreSQL https://github.com/alibabacloud-howto/terraform-templates/blob/master/terraform-alicloud-db-samples/rds-postgresql/main.tf
image.png RDS SQL Server https://github.com/alibabacloud-howto/terraform-templates/blob/master/terraform-alicloud-db-samples/rds-sqlserver/main.tf
image.png PolarDB for MySQL https://github.com/alibabacloud-howto/terraform-templates/blob/master/terraform-alicloud-db-samples/polardb-mysql/main.tf
image.png PolarDB for PostgreSQL https://github.com/alibabacloud-howto/terraform-templates/blob/master/terraform-alicloud-db-samples/polardb-postgresql/main.tf
image.png PolarDB for Oracle https://github.com/alibabacloud-howto/terraform-templates/blob/master/terraform-alicloud-db-samples/polardb-oracle/main.tf
image.png AnalyticDB for MySQL (Elastic Mode) https://github.com/alibabacloud-howto/terraform-templates/blob/master/terraform-alicloud-db-samples/analyticdb-mysql/elastic-mode/main.tf
image.png ClickHouse https://github.com/alibabacloud-howto/terraform-templates/blob/master/terraform-alicloud-db-samples/clickhouse/main.tf
image.png Redis https://github.com/alibabacloud-howto/terraform-templates/blob/master/terraform-alicloud-db-samples/redis/main.tf
image.png MongoDB (Replica Set) https://github.com/alibabacloud-howto/terraform-templates/blob/master/terraform-alicloud-db-samples/mongodb/main.tf
image.png MongoDB (Sharding Cluster) https://github.com/alibabacloud-howto/terraform-templates/blob/master/terraform-alicloud-db-samples/mongodb-shard/main.tf
image.png HBase https://github.com/alibabacloud-howto/terraform-templates/blob/master/terraform-alicloud-db-samples/hbase/main.tf
image.png InfluxDB https://github.com/alibabacloud-howto/terraform-templates/blob/master/terraform-alicloud-db-samples/influxdb/main.tf
image.png TSDB https://github.com/alibabacloud-howto/terraform-templates/blob/master/terraform-alicloud-db-samples/tsdb/main.tf
image.png DTS https://github.com/alibabacloud-howto/terraform-templates/tree/master/terraform-alicloud-db-samples/dts

Example Solutions with Terraform on Alibaba Cloud

Solution projects: https://github.com/alibabacloud-howto/database

About

Terraform samples and templates for Alibaba Cloud product, services and solutions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published