I have an ECS cluster which is backed by an ECS autoscaling group, managed by a capacity provider.
When creating the autoscaling group, I have specified the capacities like so:
desired capacity: 0
maximum capacity: 1
As expected, the desired capacity automatically increments to 1 when I add a service which generates tasks for the ECS cluster.
However, once I have zero tasks running, and the desired task count of the service is set to zero, I would expect the desired instance count to return to zero.
This is not the case, and it remains at 1.
How can I have the desired instance count scale down to zero? Or else do I have to always do this manually?