spad.ltip.create_distribution ​
Create CloudFront distribution using LTIP protocol
Create CloudFront distribution using ltinteg-ltip-proto (DAG step).
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-spad |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
s3_bucket_name | string | Yes | — | Origin S3 bucket name (set by create_bucket) |
cloudfront_oac_ref | string | Yes | — | CloudFront OAC ID (set by create_oac) |
site_uuid | string | No | — | SpadSite.id used to derive defaults |
organization_uuid | string | No | — | Organization that owns the site |
slug | string | No | — | Used to derive distribution comment/name; falls back to site.slug |
s3_region | string | No | — | Bucket region; inferred from connection config when omitted |
cloud_connection_uuid | string | No | — | CloudConnection.uuid; falls back to the site's cloud connection |
workflow_run_id | string | No | — | — |
workflow_run_uuid | string | No | — | Parent workflow run ID stamped by the DAG engine (legacy alias) |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
cloudfront_distribution_ref | string | Yes | — | ID of the newly created CloudFront distribution |
cloudfront_domain | string | Yes | — | Default *.cloudfront.net domain name for the distribution |
completed_at | string | No | — | ISO8601 timestamp when the step reached COMPLETED |
failed_at | string | No | — | ISO8601 timestamp when the step reached FAILED |
failure_reason | string | No | — | Reason recorded on the failure path |
s3_bucket_name | string | No | — | Origin S3 bucket name (set by create_bucket) |
cloudfront_oac_ref | string | No | — | CloudFront OAC ID (set by create_oac) |
site_uuid | string | No | — | SpadSite.id used to derive defaults |
organization_uuid | string | No | — | Organization that owns the site |
slug | string | No | — | Used to derive distribution comment/name; falls back to site.slug |
s3_region | string | No | — | Bucket region; inferred from connection config when omitted |
cloud_connection_uuid | string | No | — | CloudConnection.uuid; falls back to the site's cloud connection |
workflow_run_id | string | No | — | Input field carried through workflow state |
workflow_run_uuid | string | No | — | Parent workflow run ID stamped by the DAG engine (legacy alias) |
error | string | No | — | Engine-stamped failure metadata |
error_type | string | No | — | Engine-stamped failure metadata |
failed_at_state | json | No | — | Engine-stamped failure metadata |
failed_layer | json | No | — | Engine-stamped failure metadata |
failed_step | json | No | — | Engine-stamped failure metadata |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | run | Step accepted |
run | No | No | — | complete | Creating CloudFront distribution via LTIP |
completed | No | Yes | Yes | — | Distribution created successfully |
failed | No | Yes | No | — | Distribution creation failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | run | run | Start distribution creation |
run | complete | completed | Mark step completed |
* (any state) | fail | failed | Mark step failed |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "spad.ltip.create_distribution",
"initial_data": {
"s3_bucket_name": "value",
"cloudfront_oac_ref": "value"
}
}