Amazon Fargate · Arazzo Workflow
Amazon Fargate Decommission a Cluster
Version 1.0.0
Scale a service to zero and delete it, then delete the cluster once it has no active services.
Provider
Workflows
decommission-cluster
Remove a service and then delete its cluster once no active services remain.
Chains updateService (desiredCount 0), deleteService, a describeClusters poll until activeServicesCount is zero, and deleteCluster.
1
scaleServiceToZero
updateService
Scale the service to zero tasks so it can be deleted.
2
deleteService
deleteService
Delete the now-zeroed service, forcing removal if needed.
3
pollClusterServices
describeClusters
Poll DescribeClusters until the active service count reaches zero, then proceed to delete the cluster.
4
deleteCluster
deleteCluster
Delete the cluster now that it has no active services.