This is the example of creating RDS instance. This will create following resources. Architecture overview is here.
- Create VPC
- Create Vswitch
- Create Security Group and set some rules
- Create an ECS instance in Vswitch
- Create EIP and bind it to ECS instance
- Create a RDS instance in Vswitch and create database, db user
- Set ECS private ip address to RDS white list
First you need to chnage configuration to yours.
$ cp terraform.tfvars.sample terrafrom.tfvars
$ vim terraform.tfvars
=> Edit variables with your favorite editor.
Deploy to Alibaba Cloud
$ terraform apply
It takes a 5-10 minitus to create RDS. You need to wait to finish.