AWS Elastic Beanstalk
Developer Guide (API Version 2010-12-01)
AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

eb scale


Scales the environment to always run on a specified number of instances, setting both the minimum and maximum number of instances to the specified number.


eb scale scale

eb scale scale environment_name





The number of minutes before the command times out.

Common options


If successful, the command updates the number of minimum and maximum instances to run to the specified number.


The following example sets the number of instances to 2.

$ eb scale 2
INFO: Environment update is starting.
INFO: Updating environment tmp-dev's configuration settings.
INFO: Added EC2 instance 'i-5fce3d53' to Auto Scaling Group 'awseb-e-2cpfjbra9a-stack-AWSEBAutoScalingGroup-7AXY7U13ZQ6E'.
INFO: Successfully deployed new configuration to environment.
INFO: Environment update completed successfully.