Skip to content
Proud to collaborate with Microsoft for Startups

spad.site-deletion-delete-parallel-1-gcp ​

Delete GCP infrastructure (GCS bucket + Cloud CDN stack)

GCP-specific infrastructure deletion step for spad.site-deletion.

Deletes (in order):

  1. HTTPS forwarding rule + HTTPS target proxy (if provisioned)
  2. HTTP CDN stack: forwarding rule → HTTP proxy → URL map → backend bucket
  3. Managed SSL certificate (if provisioned)
  4. GCS bucket

All sub-deletions are idempotent — 404 is treated as already deleted.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-spad
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
site_uuidstringYes—UUID of the SPAD site
organization_uuidstringYes—Organization UUID
cloud_connection_uuidstringYes—GCP cloud connection UUID
distribution_refstringNo—Unused for GCP (kept for schema parity with AWS step)
bucket_namestringNo—GCS bucket name
gcp_cdn_forwarding_rule_namestringNo—HTTP forwarding-rule name from gcp_cdn resource
gcp_cdn_target_proxy_namestringNo—HTTP target-proxy name from gcp_cdn resource
gcp_cdn_url_map_namestringNo—URL-map name from gcp_cdn resource
gcp_cdn_backend_bucket_namestringNo—Backend-bucket name from gcp_cdn resource
gcp_https_proxy_namestringNo—HTTPS target-proxy name from gcp_https_proxy resource
gcp_https_forwarding_rule_namestringNo—HTTPS forwarding-rule name from gcp_https_forwarding_rule resource
gcp_managed_cert_namestringNo—Managed-cert name from gcp_managed_cert resource
workflow_run_idstringNo——
workflow_run_uuidstringNo—Parent workflow run ID stamped by the DAG engine (legacy alias)

Output Schema ​

FieldTypeRequiredDefaultDescription
infrastructure_deletedbooleanYes—True once all deletion attempts succeeded or were absent
bucket_deletedbooleanYes—True when the GCS bucket was deleted or treated as not-found
distribution_deletedbooleanYes—True when the GCP CDN stack was deleted or was absent
failure_reasonstringNo—Reason recorded on the failure path
workflow_run_idstringNo——
site_uuidstringNo—UUID of the SPAD site
organization_uuidstringNo—Organization UUID
cloud_connection_uuidstringNo—GCP cloud connection UUID
distribution_refstringNo—Unused for GCP (kept for schema parity with AWS step)
bucket_namestringNo—GCS bucket name
gcp_cdn_forwarding_rule_namestringNo—HTTP forwarding-rule name from gcp_cdn resource
gcp_cdn_target_proxy_namestringNo—HTTP target-proxy name from gcp_cdn resource
gcp_cdn_url_map_namestringNo—URL-map name from gcp_cdn resource
gcp_cdn_backend_bucket_namestringNo—Backend-bucket name from gcp_cdn resource
gcp_https_proxy_namestringNo—HTTPS target-proxy name from gcp_https_proxy resource
gcp_https_forwarding_rule_namestringNo—HTTPS forwarding-rule name from gcp_https_forwarding_rule resource
gcp_managed_cert_namestringNo—Managed-cert name from gcp_managed_cert resource
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
pendingYesNo—runGCP infrastructure deletion accepted
runNoNo—completeDeleting GCS bucket and Cloud CDN stack
completedNoYesYes—GCP infrastructure deletion completed
failedNoYesNo—GCP infrastructure deletion failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingrunrunStart GCP infrastructure deletion
runcompletecompletedMark GCP infrastructure deletion completed
* (any state)failfailedMark GCP infrastructure deletion failed

API Usage ​

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

{
  "workflow_type": "spad.site-deletion-delete-parallel-1-gcp",
  "initial_data": {
    "site_uuid": "value",
    "organization_uuid": "value",
    "cloud_connection_uuid": "value"
  }
}