runner.environment-update-ec2 ​
Update the AWS EC2 Auto Scaling Group runner environment for a runner group.
Re-apply the EC2 ASG provision, scale desired capacity, and health-check.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Dag |
| Library | App-runners |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
runner_group_uuid | uuid | Yes | — | UUID of the RunnerGroup this update operates on, picked from the organization's list of runner groups. |
organization_uuid | uuid | Yes | — | UUID of the caller's organization, injected server-side from the authenticated request; scopes the operation to the correct tenant. |
new_desired_count | integer | No | — | Target ASG desired capacity applied by the scale layer; falls back to the RunnerGroup's own desired_count when omitted. |
actor | string | No | — | User or service actor initiating the update. |
dry_run | boolean | No | — | Validate and plan the re-apply without mutating AWS resources when child workflows support it. |
idempotency_key | string | No | — | Caller-supplied idempotency key for safe retries. |
workflow_run_uuid | string | No | — | — |
workflow_run_id | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
runner_group_uuid | uuid | No | — | UUID of the RunnerGroup this action operates on, picked from the organization's list of runner groups; echoed on output alongside terminal/error payloads. |
organization_uuid | uuid | No | — | UUID of the caller's organization, injected server-side from the authenticated request; scopes the operation to the correct tenant. Echoed on output alongside terminal/error payloads. |
runner_execution_uuid | uuid | No | — | UUID of the RunnerExecution this action operates on, picked from the organization's (optionally group-scoped) list of executions; echoed on output alongside terminal/error payloads. |
workflow_uuid | string | No | — | Engine workflow-run identifier (or, for GitHub-Actions-triggered flows, an external GitHub Actions run id) associated with this record; not a platform entity foreign key despite the name. No source is attached since there is no list/query workflow for an internal run id. |
status | string | No | — | — |
outcome | string | No | — | — |
initiated_at | string | No | — | — |
completed_at | string | No | — | — |
failed_at | string | No | — | — |
failure_reason | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
actor_uuid | uuid | No | — | UUID of the user or service actor who triggered this action, injected server-side from the authenticated request when available; used for audit/attribution only. Optional — omitted for system or service-triggered actions with no human actor. |
reason | string | No | — | — |
workflow_run_uuid | string | No | — | Engine-stamped correlation/run id for this DAG execution (ADR-015/E1 plumbing), written into state_data by action_start; not a foreign key to any business entity. No source is attached since there is no list/query workflow for an internal run id. |
retry_count | integer | No | — | — |
retried_from | string | No | — | — |
failed_step | json | No | — | — |
failed_layer | json | No | — | — |
failed_at_state | json | No | — | — |
compensation_trigger | json | No | — | — |
comp_current_layer | json | No | — | — |
comp_queue | json | No | — | — |
comp_retry_count | json | No | — | — |
summary | json | No | — | — |
resource_refs | json | No | — | — |
warnings | list | No | — | — |
compensation_results | json | No | — | — |
new_desired_count | integer | No | — | — |
dry_run | boolean | No | — | — |
idempotency_key | string | No | — | — |
actor | string | No | — | — |
load_runner_group | json | No | — | — |
update_launch_template | json | No | — | — |
update_auto_scaling_group | json | No | — | — |
put_cluster_capacity_providers | json | No | — | — |
scale_desired_capacity | json | No | — | — |
health_check | json | No | — | — |
DAG Layers ​
| # | Layer | Steps | Compensation |
|---|---|---|---|
| 1 | 01_load_runner_group | data.runner.group-get | — |
| 2 | 02_update_launch_template | runner.environment-update-ec2-launch-template | — |
| 3 | 03_update_auto_scaling_group | runner.environment-update-ec2-asg | — |
| 4 | 04_put_cluster_capacity_providers | runner.environment-associate-capacity-providers | — |
| 5 | 05_scale_desired_capacity | runner.environment-scale-ec2-asg | — |
| 6 | 06_health_check | data.runner.group-update | — |
Execution Flow ​
Sub-workflows ​
| Sub-workflow | Step name |
|---|---|
data.runner.group-get | load_runner_group |
runner.environment-update-ec2-launch-template | update_launch_template |
runner.environment-update-ec2-asg | update_auto_scaling_group |
runner.environment-associate-capacity-providers | put_cluster_capacity_providers |
runner.environment-scale-ec2-asg | scale_desired_capacity |
data.runner.group-update | health_check |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "runner.environment-update-ec2",
"initial_data": {
"runner_group_uuid": "value",
"organization_uuid": "value"
}
}