aws.ecs.register_task_definition ​
Register an ECS task definition using a CloudConnection-backed AWS session.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | Base-aws |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | Yes | — | AWS CloudConnection UUID. |
region | string | No | — | AWS region override. |
family | string | Yes | — | Task definition family. |
container_definitions | list | Yes | — | Full ECS container definitions payload. |
network_mode | string | No | — | ECS network mode (default: awsvpc). |
requires_compatibilities | list | No | — | Launch types the task definition supports (e.g. ["FARGATE"]). |
cpu | string | No | — | CPU units for the task. |
memory | string | No | — | Memory (MiB) for the task. |
execution_role_arn | string | No | — | ECS task execution role ARN. |
task_role_arn | string | No | — | ECS task role ARN. |
tags | json | No | — | Tags to apply, either a {key: value} map or native key/value objects. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | No | — | AWS CloudConnection UUID echoed from input. |
region | string | No | — | AWS region used. |
task_definition_arn | string | No | — | ARN of the registered task definition. |
family | string | No | — | Task definition family. |
revision | integer | No | — | Registered revision number. |
status | string | No | — | Task definition status. |
task_definition | json | No | — | Sanitized provider task definition object. |
failure_reason | string | No | — | Human-readable failure reason. |
failed_step | string | No | — | Failed logical step. |
failed_layer | json | No | — | Failed DAG layer if engine supplies one. |
failed_at_state | string | No | — | State where failure occurred. |
error | string | No | — | Error message. |
error_type | string | No | — | Error class. |
failed_at | string | No | — | ISO failure timestamp. |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "aws.ecs.register_task_definition",
"initial_data": {
"connection_uuid": "value",
"family": "value",
"container_definitions": "value"
}
}