Skip to content
Proud to collaborate with Microsoft for Startups

aws.ecs.run_task ​

Launch an ECS task from a task definition 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 to launch the task into.
task_definitionstringYes—Task definition name or ARN to run.
subnet_idslistYes—VPC subnet IDs for awsvpc networking.
security_group_idslistNo—Security group IDs for the task ENI.
assign_public_ipbooleanNo—Assign a public IP to the task ENI (default: false).
environmentjsonNo—Environment variable overrides {NAME: value}.
launch_typestringNo—FARGATE

Output Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidNo—AWS CloudConnection UUID echoed from input.
regionstringNo—AWS region used.
task_arnstringNo—Full ECS task ARN.
clusterstringNo—Cluster ARN the task was launched into.
last_statusstringNo—Initial task status (usually PROVISIONING or PENDING).
task_definitionstringNo—Task definition ARN used to run the task.
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.run_task",
  "initial_data": {
    "connection_uuid": "value",
    "cluster": "value",
    "task_definition": "value",
    "subnet_ids": "value"
  }
}