Skip to content
Proud to collaborate with Microsoft for Startups

spad.cloudflare.create_r2_bucket ​

Create Cloudflare R2 bucket for a SPAD site (DAG step)

Create an R2 bucket for the site; also records the infrastructure-start event.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-spad
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
site_uuidstringYes—SpadSite.id whose R2 bucket should be created
slugstringYes—Site slug used to derive the bucket name
cloud_connection_uuidstringYes—Cloudflare CloudConnection.id
organization_uuidstringNo—Organization that owns the site
workflow_run_idstringNo——
workflow_run_uuidstringNo—Parent workflow run ID stamped by the DAG engine (legacy alias)

Output Schema ​

FieldTypeRequiredDefaultDescription
r2_bucket_namestringYes—Name of the newly created R2 bucket (ltinteg-{slug})
r2_domainstringYes—Public R2 endpoint URL
completed_atstringNo—ISO8601 timestamp when the step reached COMPLETED
failed_atstringNo—ISO8601 timestamp when the step reached FAILED
workflow_run_idstringNo——
site_uuidstringNo—SpadSite.id whose R2 bucket should be created
slugstringNo—Site slug used to derive the bucket name
cloud_connection_uuidstringNo—Cloudflare CloudConnection.id
organization_uuidstringNo—Organization that owns the site
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

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—runR2 creation step accepted
runNoNo—completeCreating R2 bucket
completedNoYesYes—R2 bucket created
failedNoYesNo—R2 bucket creation failed

State Diagram ​

Transitions ​

FromActionToDescription
initiatedrunrunStart R2 bucket creation
runcompletecompletedMark R2 bucket creation completed
* (any state)failfailedMark R2 bucket creation failed

API Usage ​

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

{
  "workflow_type": "spad.cloudflare.create_r2_bucket",
  "initial_data": {
    "site_uuid": "value",
    "slug": "value",
    "cloud_connection_uuid": "value"
  }
}