Created
October 17, 2015 08:59
-
-
Save dasgoll/0499e785a5ae068b6659 to your computer and use it in GitHub Desktop.
Delete AWS ECS cluster - The service cannot be stopped while the primary deployment is scaled above 0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I tried to delete a cluster: | |
"The Cluster cannot be deleted while Services are active." | |
I tried to delete the service called 'nginx': | |
"The service cannot be stopped while the primary deployment is scaled above 0" | |
Select service, click 'Update' - set 'Number of tasks' to 0 | |
This changed the number of 'Desired Tasks' to 0 | |
Or I guess: | |
aws ecs update-service --service nginx --desired-count 0 --cluster ecscluster1 --profile devops | |
Delete the service | |
Delete the cluster |
Please follow the below steps:
- Click on Update
- Make Number of Tasks to 0
- Update the service again
- Then click on Delete
Thanks
Thanks Amitpandey. It help for me too...
Thanks =)
Big help five years later :)
Works!!!
Much appreciated 🙏
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tnx.