aws.ecs.put_cluster_capacity_providers ​
Set the capacity providers and default strategy on an ECS cluster 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. |
cluster | string | Yes | — | Name or ARN of the cluster to modify. |
capacity_providers | list | Yes | — | Capacity providers to associate (empty list disassociates all). |
default_capacity_provider_strategy | list | Yes | — | Default capacity provider strategy (empty list clears it). |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | No | — | AWS CloudConnection UUID echoed from input. |
region | string | No | — | AWS region used. |
cluster_arn | string | No | — | ARN of the modified cluster. |
status | string | No | — | Cluster status. |
cluster | json | No | — | Sanitized provider cluster 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.put_cluster_capacity_providers",
"initial_data": {
"connection_uuid": "value",
"cluster": "value",
"capacity_providers": "value",
"default_capacity_provider_strategy": "value"
}
}