title: What is the easiest way to "recycle" tasks in Amazon ECS?
body: <p>Given a service running in ECS with, say, 2 tasks, I want to launch a new version of the underlying image. If I create a new version of the task, and update the service to use the new defition, it will launch 2 new tasks with the new version, wait for those to become healthy, and then deregister the old tasks.</p>
  
  <p>This is all fine, but it means that I'm creating a bunch of task definitions that are identical, since the image name hasn't changed (it's <code>myapplication:latest</code>). And, experimentation has suggested that if I manually stop a task, and let ECS relaunch it, it will use the updated image. However, manually stopping the task causes it to become deregistered immediately, before a replacement has been launched, which means a short period of downtime.</p>
  
  <p>As far as I can tell, there is no way to relaunch the images from the console. Is there any way from the CLI? Or, some other trick I'm not thinking of?</p>