Skip to content
Proud to collaborate with Microsoft for Startups

spad.configure_bucket_policy ​

Configure bucket policy (DAG step)

Configure bucket policy (DAG step).

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-spad
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
site_uuidstringYes—SpadSite.id for context propagation
s3_bucket_namestringYes—Bucket whose policy should be set
cloudfront_distribution_refstringYes—CloudFront distribution ID granted access via the policy
cloud_connection_uuidstringYes—AWS CloudConnection.id
organization_uuidstringNo—Organization that owns the site
s3_regionstringNo—Bucket region

Output Schema ​

FieldTypeRequiredDefaultDescription
bucket_policy_configuredbooleanYes—True once the bucket policy grants CloudFront OAC access
resources_createdlistNo—Accumulator list of created resource tags (adds 's3_bucket_policy')
completed_atstringNo—ISO8601 timestamp when the step reached COMPLETED
failed_atstringNo—ISO8601 timestamp when the step reached FAILED
site_uuidstringNo—SpadSite.id for context propagation
s3_bucket_namestringNo—Bucket whose policy should be set
cloudfront_distribution_refstringNo—CloudFront distribution ID granted access via the policy
cloud_connection_uuidstringNo—AWS CloudConnection.id
organization_uuidstringNo—Organization that owns the site
s3_regionstringNo—Bucket region
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—runStep accepted
runNoNo—completeExecuting site creation action
completedNoYesYes—Step completed successfully
failedNoYesNo—Step failed

State Diagram ​

Transitions ​

FromActionToDescription
initiatedrunrunStart step execution
runcompletecompletedMark step completed
* (any state)failfailedMark step failed

API Usage ​

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

{
  "workflow_type": "spad.configure_bucket_policy",
  "initial_data": {
    "site_uuid": "value",
    "s3_bucket_name": "value",
    "cloudfront_distribution_ref": "value",
    "cloud_connection_uuid": "value"
  }
}