amazon-web-servicesamazon-ecs

Can I pause an ECS service instead of deleting it?


Haven't been able to find this in docs. Can I just pause an ECS service so it stops creating new tasks? Or do I have to delete it to stop that behavior?

I just want to temporarily suspend it from creating new tasks on the cluster.


Solution

  • You can accomplish a "pause" by adjusting your service configuration to match your current number of running tasks. For example, if you currently have 3 running tasks in your service, you'd configure the service as below:

    .

    This tells the service:

    These combined effectively halt your service from making any changes.