Use tf to realize one-click deployment of MySQL disaster recovery in two places and three centers.
Name | Version |
---|---|
terraform | >=0.12 |
tencentcloud | >=1.81.0 |
Name | Version |
---|---|
tencentcloud | >=1.81.0 |
Name | Source | Version |
---|---|---|
mysql-dr-instance | ./modules/mysql | n/a |
mysql-master-instance | ./modules/mysql | n/a |
mysql-ro-instance | ./modules/mysql | n/a |
securityGroup-guangzhou | ./modules/securityGroups | n/a |
securityGroup-shanghai | ./modules/securityGroups | n/a |
vpc-guangzhou | ./modules/vpc | n/a |
vpc-shanghai | ./modules/vpc | n/a |
Name | Type |
---|---|
tencentcloud_mysql_instance.ins | resource |
tencentcloud_mysql_readonly_instance.ro_ins | resource |
tencentcloud_vpc.vpc | resource |
tencentcloud_subnet.subnet | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
availability_zone-guangzhou | The subnet availability zone. | string |
n/a | yes |
availability_zone-shanghai | The subnet availability zone. | string |
n/a | yes |
master_instance_name | The name of the master instance. | string |
n/a | yes |
master_instance_password | The password of the master instance. | string |
n/a | yes |
master_instance_region | The regioni of the master instance. | string |
n/a | yes |
sg_description-guangzhou | The description of the security group. | string |
n/a | yes |
sg_description-shanghai | The description of the security group. | string |
n/a | yes |
sg_name-guangzhou | The name of the security group. | string |
n/a | yes |
sg_name-shanghai | The name of the security group. | string |
"security_group_name-1" |
no |
subnet_cidr_block-guangzhou | The CIDR block for the subnet. | string |
n/a | yes |
subnet_cidr_block-shanghai | The CIDR block for the subnet. | string |
n/a | yes |
subnet_name-guangzhou | The name of the subnet. | string |
n/a | yes |
subnet_name-shanghai | The name of the subnet. | string |
n/a | yes |
vpc_cidr_block-guangzhou | The CIDR block for the VPC. | string |
n/a | yes |
vpc_cidr_block-shanghai | The CIDR block for the VPC. | string |
n/a | yes |
vpc_name-guangzhou | The name of the VPC. | string |
n/a | yes |
vpc_name-shanghai | The name of the VPC. | string |
n/a | yes |
Name | Description |
---|---|
vpc-guangzhou-id | The Id of Guangzhou VPC. |
vpc-shanghai-id | The Id of Shanghai VPC. |