- Newest
- Most votes
- Most comments
Ensure there are no ongoing updates or related ECS tasks that might be using the capacity provider. Sometimes, updates might be stuck due to issues with the underlying infrastructure or service.
aws ecs describe-capacity-providers --capacity-providers <capacity-provider-name>
Stop All ECS Services and Tasks Using the Capacity Provider. Ensure that there are no tasks or services indirectly tied to the capacity provider.
aws ecs list-tasks --cluster <cluster-name> --query 'taskArns[]'
aws ecs list-services --cluster <cluster-name> --query 'serviceArns[]'
If the above steps do not work, contact AWS Support. This might be necessary if the capacity provider is stuck in an inconsistent state that cannot be resolved through regular API calls.
i use this command to list capacity providers associated with a service for all services in the cluster:
aws ecs describe-services --cluster ec2-projects --services ${service} --query 'services[0].capacityProviderStrategy[*].capacityProvider';but there is no services using that capacity provider. i suppose i need AWS Support, so.
Relevant content
- AWS OFFICIALUpdated 2 years ago

please accept the answer if it was useful