title: How to launch new tasks on ecs instances which come up in autoscaling group
body: <p>I have an ECS Cluster which has two instances as defined in an autoscaling group with 2 as minimum capacity,</p>
  
  <p>I have defined the ecs service to run two containers per instance when it is created or updated. So it launches two containers per ecs instances in the ecs cluster.</p>
  
  <p>Now, suppose when I stop/terminate an instance in that cluster a new instance will automatically come up since the autoscaling group has a minimum capacity of two. </p>
  
  <p><strong>The problem is when the new instance come up in the autoscaling group it does not run two tasks which are defined to be in service, instead, it runs 4 tasks on one ecs instance and the other new ecs instance doesn't have any task running on it.</strong> </p>
  
  <p><strong>How could I manage that whenever a new instance come up in Auto Scaling group it also has those two tasks running?</strong></p>