title: ECS Blue/Green Deployment with CodeDeploy - Autoscaling Instances Number
body: <p>I'm using ECS (on EC2) with blue/green deployment powered by AWS CodeDeploy.</p>
  
  <p>After creating a new task definition, and updating the service to use it, a new deployment on AWS CodeDeploy starts. However, the new task is not able to run on my service due to this error:
  <code>service my-service-dev was unable to place a task because no container instance met all of its requirements...</code></p>
  
  <p>I understand that the current instances used by the cluster cannot run the new task. If I manually add new instances, by increasing the minimal capacity in the auto-scaling group of the cluster, then the deployment takes place successfully.</p>
  
  <p>I wanted to know if there is a way to make this happen automatically. Increasing the maximum capacity (in the same place) doesn't seem to help.</p>