Skip to content

Use tf to realize one-click deployment of MySQL disaster recovery in two places and three centers.

License

Notifications You must be signed in to change notification settings

gitmkn/crp-cdb-disaster-tolerant

Repository files navigation

crp-cdb-disaster-tolerant

Deploy-To-Tencent-Cloud.png

Use tf to realize one-click deployment of MySQL disaster recovery in two places and three centers.

Requirements

Name Version
terraform >=0.12
tencentcloud >=1.81.0

Providers

Name Version
tencentcloud >=1.81.0

Modules

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

Resources

Name Type
tencentcloud_mysql_instance.ins resource
tencentcloud_mysql_readonly_instance.ro_ins resource
tencentcloud_vpc.vpc resource
tencentcloud_subnet.subnet resource

Inputs

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

Outputs

Name Description
vpc-guangzhou-id The Id of Guangzhou VPC.
vpc-shanghai-id The Id of Shanghai VPC.

About

Use tf to realize one-click deployment of MySQL disaster recovery in two places and three centers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages