|
1 | | -# terraform-alicloud-analyticdb-mysql |
2 | | -Terraform module for creating Analyticdb MySQL on Alibaba Cloud. |
| 1 | +Terraform module which creates a ADB cluster on Alibaba Cloud. |
| 2 | +terraform-alicloud-analyticdb-mysql |
| 3 | +===================================================================== |
| 4 | + |
| 5 | +English | [简体中文](https://github.com/terraform-alicloud-modules/terraform-alicloud-analyticdb-mysql/blob/master/README-CN.md) |
| 6 | + |
| 7 | +Terraform module which creates ADB cluster resources on Alibaba Cloud |
| 8 | + |
| 9 | +These types of resources are supported: |
| 10 | + |
| 11 | +* [Alicloud adb cluster](https://www.terraform.io/docs/providers/alicloud/r/adb_cluster.html) |
| 12 | + |
| 13 | +---------------------- |
| 14 | + |
| 15 | +## Terraform versions |
| 16 | + |
| 17 | +This module requires Terraform 0.12 and Terraform Provider AliCloud 1.71.0+. |
| 18 | + |
| 19 | +## Usage |
| 20 | +----- |
| 21 | +### You can use this in your terraform template with the following steps. |
| 22 | + |
| 23 | +Adding a module resource to your template, e.g. main.tf |
| 24 | + |
| 25 | +```hcl |
| 26 | +module "adb" { |
| 27 | + source = "terraform-alicloud-modules/adb/alicloud" |
| 28 | + profile = "Your-Profile-Name" |
| 29 | + region = "cn-shenzhen" |
| 30 | + ################# |
| 31 | + # ADB Cluster |
| 32 | + ################# |
| 33 | + db_cluster_version = "3.0" |
| 34 | + db_cluster_category = "Cluster" |
| 35 | + db_node_class = "C8" |
| 36 | + db_node_count = 2 |
| 37 | + db_node_storage = 200 |
| 38 | + pay_type = "PostPaid" |
| 39 | + vswitch_id = "vsw-wz9dtqayzctoqh*******" |
| 40 | + description = "tf-module-adb" |
| 41 | + availability_zone = "cn-shenzhen-e" |
| 42 | +} |
| 43 | +``` |
| 44 | + |
| 45 | +## Examples |
| 46 | + |
| 47 | +* [example](https://github.com/terraform-alicloud-modules/terraform-alicloud-analyticdb-mysql/tree/master/examples/complete) |
| 48 | + |
| 49 | +## Notes |
| 50 | + |
| 51 | +* This module using AccessKey and SecretKey are from `profile` and `shared_credentials_file`. |
| 52 | +If you have not set them yet, please install [aliyun-cli](https://github.com/aliyun/aliyun-cli#installation) and configure it. |
| 53 | + |
| 54 | +Submit Issues |
| 55 | +------------- |
| 56 | +If you have any problems when using this module, please opening a [provider issue](https://github.com/terraform-providers/terraform-provider-alicloud/issues/new) and let us know. |
| 57 | + |
| 58 | +**Note:** There does not recommend to open an issue on this repo. |
| 59 | + |
| 60 | +Authors |
| 61 | +--------- |
| 62 | +Created and maintained by quanyun. |
| 63 | + |
| 64 | +License |
| 65 | +---- |
| 66 | +Apache 2 Licensed. See LICENSE for full details. |
| 67 | + |
| 68 | +Reference |
| 69 | +--------- |
| 70 | +* [Terraform-Provider-Alicloud Github](https://github.com/terraform-providers/terraform-provider-alicloud) |
| 71 | +* [Terraform-Provider-Alicloud Release](https://releases.hashicorp.com/terraform-provider-alicloud/) |
| 72 | +* [Terraform-Provider-Alicloud Docs](https://www.terraform.io/docs/providers/alicloud/index.html) |
0 commit comments