Skip to content
Proud to collaborate with Microsoft for Startups

aws.ecs.stop_task ​

Stop a running ECS task using a CloudConnection-backed AWS session.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryBase-aws
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidYes—AWS CloudConnection UUID.
regionstringNo—AWS region override.
clusterstringYes—Cluster name or ARN that hosts the task.
task_arnstringYes—Task ID or ARN to stop.
reasonstringNo—Human-readable reason for stopping the task.

Output Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidNo—AWS CloudConnection UUID echoed from input.
regionstringNo—AWS region used.
task_arnstringNo—ARN of the task that was stopped.
last_statusstringNo—Final task status (usually DEPROVISIONING or STOPPED).
taskjsonNo—Sanitized provider task object.
failure_reasonstringNo—Human-readable failure reason.
failed_stepstringNo—Failed logical step.
failed_layerjsonNo—Failed DAG layer if engine supplies one.
failed_at_statestringNo—State where failure occurred.
errorstringNo—Error message.
error_typestringNo—Error class.
failed_atstringNo—ISO failure timestamp.

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "aws.ecs.stop_task",
  "initial_data": {
    "connection_uuid": "value",
    "cluster": "value",
    "task_arn": "value"
  }
}