Stop a Task and Confirm
A 3-step recipe with Amazon Fargate. We can help you get access.
Recipe · 3 steps
Stop a Task and Confirm
with Amazon Fargate
Locate a running task, stop it, and confirm it has reached STOPPED.
- List the running tasks in the cluster to find one to stop.
- Stop the located task, recording the supplied reason.
- Poll DescribeTasks until the task reaches STOPPED, re-entering while it is still shutting down.
What you'll need to have ready
- cluster: Name or ARN of the cluster to operate on.
- reason: Human-readable reason recorded when the task is stopped.
For your developer
Arazzo workflow amazon-fargate:stop-task-and-confirm, 3 operations: listTasks → stopTask → describeTasks. Specs on APIs.io.