aws.ecs.create_capacity_provider ​
Create an ECS capacity provider backed by an Auto Scaling group using a CloudConnection.
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. |
capacity_provider_name | string | Yes | — | Name for the new capacity provider. |
auto_scaling_group_arn | string | Yes | — | ARN of the Auto Scaling group to back the capacity provider. |
managed_scaling | json | No | — | Managed scaling configuration block. |
managed_termination_protection | string | No | — | Managed termination protection setting (ENABLED/DISABLED). |
tags | json | No | — | Tags to apply to the capacity provider. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | No | — | AWS CloudConnection UUID echoed from input. |
region | string | No | — | AWS region used. |
capacity_provider_arn | string | No | — | ARN of the created capacity provider. |
capacity_provider_name | string | No | — | Name of the created capacity provider. |
status | string | No | — | Capacity provider status. |
capacity_provider | json | No | — | Sanitized provider capacity provider 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.create_capacity_provider",
"initial_data": {
"connection_uuid": "value",
"capacity_provider_name": "value",
"auto_scaling_group_arn": "value"
}
}