AWS Elastic Beanstalk simplifies application management, with server scaling out-of-the-box. Scaling is pretty idiot-proof. In fact, if you try to scale down to zero instances, you get the following:
MaxBatchSize: Invalid option value: '0' (Namespace: 'aws:autoscaling:updatepolicy:rollingupdate', OptionName: 'MaxBatchSize'): Value is less than minimum allowed value: 1
A few weeks ago, I was asked to scale an environment down to determine if there was any adverse effect in terminating it. Basically, we would scale down to zero and see if anyone missed it being alive. In order to do this, we had to go around Elastic Beanstalk and using the Auto Scaling Group:
- In the AWS Console, go to Compute -> EC2
- In EC2 Dashboard, go to AUTO SCALING -> Auto Scaling Groups
- Use the Filter text box to find the auto scaling group for my environment. Typing in the environment name (e.g. stag-rails-app-s1) should work.
- Click on your auto scaling group.
- In the Details tag, click the Edit button.
- Set the Desired and Min to 0.
- Click the Save button.