This is the example of AutoScaling. This will create following resources.
- Create VPC
- Create Vswitch
- Create Security Group and set some rules
- Create SLB instance
- Create Scaling Group, binding SLB
- Create Scaling Configuration, launch ubuntu machine
- Create Scaling Rules, scale in/out
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