Search code examples
amazon-web-servicesamazon-elastic-beanstalk

How do I set the instance count of a Elastic Beanstalk environment to 0?


In other words I would like to temporarily turn off an environment (and its associated billing costs) but not delete it entirely.

It seems if I set the [Configuration > Web Tier > Scaling > Minimum instance count] to 0 along with the related "Maximum instance count", AWS rejects those settings as invalid. Ditto for questionable values like 0.1.

Any ideas for temporarily taking an Elastic Beanstalk environment out of service?


Solution

    • Find and select the EC2 Autoscaling Group for the Elastic Beanstalk environment in the AWS Console. It should be named something like awseb-e-*-stack-AWSEBAutoScalingGroup-*.
    • Press the "Edit" button. Change the "Desired capacity" to 0.

    enter image description here