title: Replace ECS tasks in cluster using AWS cli
body: <p>I'm trying to replace the current tasks in an ECS cluster.</p>
  <p>Context:
  I have 2 tasks (and a maximum of 4)
  Every time I make a change to the docker image, the image is built, tagged, and pushed to ECR (through Jenkins). I wanted to add a timer and after x minutes, replace the current tasks with new ones (also in the CI/CD)</p>
  <p>I tried</p>
  <pre><code>aws ecs update-service --cluster myCluster --service myService --task-definition myTaskDef
  </code></pre>
  <p>but it didn't work.</p>
  <p>Also, several suggestions that I found in StackOverflow and forums, but in the best cases, I ended with 4 tasks, while, I just want to replace the current ones with new ones.</p>
  <p>Is this possible using the CLI?</p>