This is the example of controlling multi region resources with using module function. You can create following resources to Shanghai, Tokyo, Silicon Valley region at the same time.
- Create VPC
- Create Vswitch
- Create Security Group and set some rules
- Create an ECS instance in Vswitch
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.