capabilities.work

Decommission a Cluster

A 4-step recipe with Amazon Fargate. We can help you get access.

Recipe · 4 steps

Decommission a Cluster

Remove a service and then delete its cluster once no active services remain.

  1. Scale the service to zero tasks so it can be deleted.
  2. Delete the now-zeroed service, forcing removal if needed.
  3. Poll DescribeClusters until the active service count reaches zero, then proceed to delete the cluster.
  4. 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.