spad.ltip.gcp.create_cdn ​
Create GCP Cloud CDN edge stack for SPAD static delivery
Create the GCP CDN edge stack via LTIP.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-spad |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
slug | string | Yes | — | Site slug used to name CDN resources |
s3_bucket_name | string | Yes | — | Origin GCS bucket name (named s3_bucket_name for cross-provider parity) |
cloud_connection_uuid | string | Yes | — | GCP CloudConnection.id |
s3_region | string | No | us-central1 | GCP region for the CDN stack |
site_uuid | string | No | — | SpadSite.id for context propagation |
organization_uuid | string | No | — | Organization that owns the site |
workflow_run_id | string | No | — | Injected by the parent DAG; propagated through state_data |
workflow_run_uuid | string | No | — | Parent workflow run ID stamped by the DAG engine (legacy alias) |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
cloudfront_domain | string | Yes | — | CDN URL (reused cross-provider key for the edge domain) |
gcp_backend_bucket_name | string | Yes | — | Backend-bucket resource name |
gcp_url_map_name | string | Yes | — | URL-map resource name |
gcp_target_proxy_name | string | Yes | — | Target HTTPS/HTTP proxy resource name |
gcp_forwarding_rule_name | string | Yes | — | Global forwarding-rule resource name |
gcp_forwarding_rule_ip | string | Yes | — | Reserved global anycast IP for the forwarding rule |
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 |
workflow_run_id | string | No | — | Injected by the parent DAG; propagated through state_data |
slug | string | No | — | Site slug used to name CDN resources |
s3_bucket_name | string | No | — | Origin GCS bucket name (named s3_bucket_name for cross-provider parity) |
cloud_connection_uuid | string | No | — | GCP CloudConnection.id |
s3_region | string | No | — | GCP region for the CDN stack |
site_uuid | string | No | — | SpadSite.id for context propagation |
organization_uuid | string | No | — | Organization that owns the site |
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 | Provisioning GCP CDN edge stack |
completed | No | Yes | Yes | — | GCP CDN created |
failed | No | Yes | No | — | GCP CDN creation failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | run | run | Start CDN 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.gcp.create_cdn",
"initial_data": {
"slug": "value",
"s3_bucket_name": "value",
"cloud_connection_uuid": "value"
}
}