Modifies the number of container instances in your cluster. This command changes the desired and maximum instance count in the Auto Scaling group created by the ecs-cli up command. You can use this command to scale out (increase the number of instances) or scale in (decrease the number of instances) your cluster.
The Amazon ECS CLI can only manage tasks, services, and container instances that were created with the CLI. To manage tasks, services, and container instances that were not created by the Amazon ECS CLI, use the AWS Command Line Interface or the AWS Management Console.
ecs-cli scale --capability-iam --size
Acknowledges that this command may create IAM resources.
Specifies the number of instances to maintain in your cluster.
Shows the help text for the specified command.
This example scales the current cluster to two container instances.
ecs-cli scale --capability-iam --size 2
INFO Waiting for your cluster resources to be updated INFO Cloudformation stack status stackStatus=UPDATE_IN_PROGRESS