title: ECS service keeps deregistering Target Group and start/stop tasks
body: <p>I have an ECS service that is repeatedly starting and stopping a task running on a EC2 (<code>m5.large</code>) launch type container. The Events tab says these messages in a loop - </p>
  
  <pre><code>service test-service deregistered 1 targets in target-group localhost-localhost-default
  
  service test-service has begun draining connections on 1 tasks.
  
  service test-service deregistered 1 targets in target-group localhost-localhost-default
  
  service test-service has started 2 tasks: task 4e1569b3-a15c-4bac-85f7-396b530113a5 task d5651035-8e3d-48df-b457-d05e5b7be8db.
  </code></pre>
  
  <p>There is nothing more there to help understand what might be going on. When I checked the Target group itself, the instances are not registered anymore to it. I have allocated <code>memory: 1024</code> and <code>cpu: 512</code> for the task which should be enough. </p>
  
  <p>Is there anything I can do to understand what the problem here is ? </p>