Skip to content
Proud to collaborate with Microsoft for Startups

spad.site-creation ​

Provisions all infrastructure for a new SPAD site (DAG, LTIP)

DAG-based site creation for AWS SPAD sites using LTIP (spad.ltip.* steps).

Leaf workflow types are spad.ltip.* — see site_creation_ltip/steps/.

Overview ​

PropertyValue
Workflow typeDag
LibraryApp-spad
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
site_uuidstringYes—ID of the SPAD site to create
organization_uuidstringNo—Organization ID
slugstringYes—Site slug/identifier
cloud_connection_uuidstringYes—Cloud connection ID
workflow_run_idstringNo—Parent workflow run ID stamped by the DAG engine
workflow_run_uuidstringNo—Parent workflow run ID stamped by the DAG engine (legacy alias)

Output Schema ​

FieldTypeRequiredDefaultDescription
site_uuidstringYes—Site marked active
organization_uuidstringNo—Organization ID propagated from input
slugstringNo—Site slug propagated from input
cloud_connection_uuidstringNo—Cloud connection ID propagated from input
s3_bucket_namestringNo—Provisioned S3 bucket name
cloudfront_domainstringNo—CloudFront distribution default domain
resources_createdlistNo—Resources successfully provisioned (subset of s3_bucket / cloudfront_distribution / cloudfront_oac)
completed_atstringNo—ISO8601 timestamp when finalize completed
workflow_run_idstringNo—Parent workflow run ID stamped by the DAG engine
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
failure_reasonstringNo—Engine-stamped failure metadata
create_bucketjsonNo—DAG step terminal state data
configure_bucketjsonNo—DAG step terminal state data
create_oacjsonNo—DAG step terminal state data
create_distributionjsonNo—DAG step terminal state data
configure_bucket_policyjsonNo—DAG step terminal state data
finalizejsonNo—DAG step terminal state data

DAG Layers ​

#LayerStepsCompensation
1create_bucketspad.ltip.create_bucketspad.ltip.compensate_delete_bucket
2parallel_setup_1spad.ltip.configure_bucket, spad.ltip.create_oacspad.ltip.compensate_delete_oac
3create_distributionspad.ltip.create_distributionspad.ltip.compensate_delete_distribution
4configure_bucket_policyspad.ltip.configure_bucketspad.compensation.noop
5finalizespad.ltip.site-creation-finalize—

Execution Flow ​

Compensation ​

When any layer fails, its compensation steps run in reverse order to roll back the work completed so far.

Sub-workflows ​

Sub-workflowStep name
spad.ltip.create_bucketcreate_bucket
spad.ltip.configure_bucketconfigure_bucket
spad.ltip.create_oaccreate_oac
spad.ltip.create_distributioncreate_distribution
spad.ltip.site-creation-finalizefinalize
spad.ltip.compensate_delete_bucketundo_create_bucket
spad.ltip.compensate_delete_oacundo_create_oac
spad.ltip.compensate_delete_distributionundo_create_distribution
spad.compensation.noopack_no_compensation_configure_bucket_policy

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "spad.site-creation",
  "initial_data": {
    "site_uuid": "value",
    "slug": "value",
    "cloud_connection_uuid": "value"
  }
}