Skip to content
Proud to collaborate with Microsoft for Startups

deploy.cloudrun.teardown ​

Tear down a Cloud Run deployment: delete the service and (if bound) its domain mapping. Idempotent.

Delete a Cloud Run service (and optional domain mapping) for a deployment.

Overview ​

PropertyValue
Workflow typeDag
LibraryApp-deployments
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Organization UUID.
deployment_target_uuiduuidNo—Deployment target being torn down (for correlation; soft-delete it separately).
connection_uuiduuidYes—GCP connection UUID.
project_idstringNo—GCP project override.
regionstringYes—Cloud Run region.
service_namestringYes—Cloud Run service to delete.
domainstringNo—Custom domain to unmap; when omitted the domain-mapping delete is skipped.

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidNo—Organization UUID.
deployment_target_uuiduuidNo—Deployment target UUID.
service_namestringNo—Cloud Run service name.
domainstringNo—Custom domain.
connection_uuiduuidNo—GCP connection UUID (carried through).
project_idstringNo—GCP project (carried through).
regionstringNo—Cloud Run region (carried through).
workflow_run_uuiduuidNo—DAG run UUID stamped by the engine.
delete_servicejsonNo—Result of the gcp.run.service.delete step.
delete_domain_mappingjsonNo—Result of the gcp.run.domain-mapping.delete step (when domain set).
statusstringNo—Teardown status.
failure_reasonstringNo—Engine failure reason.
failure_typestringNo——
failed_actionstringNo——
failed_stepjsonNo—Failed DAG step envelope.
failed_layerjsonNo—Failed DAG layer envelope.
failed_at_statestringNo—State where failure occurred.
errorstringNo—Error message.
error_typestringNo—Error class.

DAG Layers ​

#LayerStepsCompensation
1teardown_providergcp.run.service.delete, gcp.run.domain-mapping.delete—

Execution Flow ​

Sub-workflows ​

Sub-workflowStep name
gcp.run.service.deletedelete_service
gcp.run.domain-mapping.deletedelete_domain_mapping

API Usage ​

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

{
  "workflow_type": "deploy.cloudrun.teardown",
  "initial_data": {
    "organization_uuid": "value",
    "connection_uuid": "value",
    "region": "value",
    "service_name": "value"
  }
}