Decommission a Cluster
A 4-step recipe with Amazon Fargate. We can help you get access.
Recipe · 4 steps
Decommission a Cluster
with Amazon Fargate
Remove a service and then delete its cluster once no active services remain.
- Scale the service to zero tasks so it can be deleted.
- Delete the now-zeroed service, forcing removal if needed.
- Poll DescribeClusters until the active service count reaches zero, then proceed to delete the cluster.
- Delete the cluster now that it has no active services.
What you'll need to have ready
- cluster: Name or ARN of the cluster to decommission.
- service: Name or ARN of the service to remove first.
For your developer
Arazzo workflow amazon-fargate:decommission-cluster, 4 operations: updateService → deleteService → describeClusters → deleteCluster. Specs on APIs.io.