Skip to content
Proud to collaborate with Microsoft for Startups

spad.ltip.create_distribution ​

Create CloudFront distribution using LTIP protocol

Create CloudFront distribution using ltinteg-ltip-proto (DAG step).

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-spad
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
s3_bucket_namestringYes—Origin S3 bucket name (set by create_bucket)
cloudfront_oac_refstringYes—CloudFront OAC ID (set by create_oac)
site_uuidstringNo—SpadSite.id used to derive defaults
organization_uuidstringNo—Organization that owns the site
slugstringNo—Used to derive distribution comment/name; falls back to site.slug
s3_regionstringNo—Bucket region; inferred from connection config when omitted
cloud_connection_uuidstringNo—CloudConnection.uuid; falls back to the site's cloud connection
workflow_run_idstringNo——
workflow_run_uuidstringNo—Parent workflow run ID stamped by the DAG engine (legacy alias)

Output Schema ​

FieldTypeRequiredDefaultDescription
cloudfront_distribution_refstringYes—ID of the newly created CloudFront distribution
cloudfront_domainstringYes—Default *.cloudfront.net domain name for the distribution
completed_atstringNo—ISO8601 timestamp when the step reached COMPLETED
failed_atstringNo—ISO8601 timestamp when the step reached FAILED
failure_reasonstringNo—Reason recorded on the failure path
s3_bucket_namestringNo—Origin S3 bucket name (set by create_bucket)
cloudfront_oac_refstringNo—CloudFront OAC ID (set by create_oac)
site_uuidstringNo—SpadSite.id used to derive defaults
organization_uuidstringNo—Organization that owns the site
slugstringNo—Used to derive distribution comment/name; falls back to site.slug
s3_regionstringNo—Bucket region; inferred from connection config when omitted
cloud_connection_uuidstringNo—CloudConnection.uuid; falls back to the site's cloud connection
workflow_run_idstringNo—Input field carried through workflow state
workflow_run_uuidstringNo—Parent workflow run ID stamped by the DAG engine (legacy alias)
errorstringNo—Engine-stamped failure metadata
error_typestringNo—Engine-stamped failure metadata
failed_at_statejsonNo—Engine-stamped failure metadata
failed_layerjsonNo—Engine-stamped failure metadata
failed_stepjsonNo—Engine-stamped failure metadata

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—runStep accepted
runNoNo—completeCreating CloudFront distribution via LTIP
completedNoYesYes—Distribution created successfully
failedNoYesNo—Distribution creation failed

State Diagram ​

Transitions ​

FromActionToDescription
initiatedrunrunStart distribution creation
runcompletecompletedMark step completed
* (any state)failfailedMark 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"
  }
}