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 ​
| Property | Value |
|---|---|
| Workflow type | Dag |
| Library | App-deployments |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Organization UUID. |
deployment_target_uuid | uuid | No | — | Deployment target being torn down (for correlation; soft-delete it separately). |
connection_uuid | uuid | Yes | — | GCP connection UUID. |
project_id | string | No | — | GCP project override. |
region | string | Yes | — | Cloud Run region. |
service_name | string | Yes | — | Cloud Run service to delete. |
domain | string | No | — | Custom domain to unmap; when omitted the domain-mapping delete is skipped. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | No | — | Organization UUID. |
deployment_target_uuid | uuid | No | — | Deployment target UUID. |
service_name | string | No | — | Cloud Run service name. |
domain | string | No | — | Custom domain. |
connection_uuid | uuid | No | — | GCP connection UUID (carried through). |
project_id | string | No | — | GCP project (carried through). |
region | string | No | — | Cloud Run region (carried through). |
workflow_run_uuid | uuid | No | — | DAG run UUID stamped by the engine. |
delete_service | json | No | — | Result of the gcp.run.service.delete step. |
delete_domain_mapping | json | No | — | Result of the gcp.run.domain-mapping.delete step (when domain set). |
status | string | No | — | Teardown status. |
failure_reason | string | No | — | Engine failure reason. |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_step | json | No | — | Failed DAG step envelope. |
failed_layer | json | No | — | Failed DAG layer envelope. |
failed_at_state | string | No | — | State where failure occurred. |
error | string | No | — | Error message. |
error_type | string | No | — | Error class. |
DAG Layers ​
| # | Layer | Steps | Compensation |
|---|---|---|---|
| 1 | teardown_provider | gcp.run.service.delete, gcp.run.domain-mapping.delete | — |
Execution Flow ​
Sub-workflows ​
| Sub-workflow | Step name |
|---|---|
gcp.run.service.delete | delete_service |
gcp.run.domain-mapping.delete | delete_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"
}
}