gcp.compute.backend_bucket.create ​
Create a global backend bucket fronting a GCS bucket (static origin) for the L7 load balancer.
Create a global backend bucket fronting a GCS bucket for the L7 load balancer.
The static counterpart of gcp.compute.backend_service.create: it lets an HTTPS load balancer serve an SPA published to a GCS bucket as a url-map target, so static content and a Cloud Run API can sit behind one LB (one origin, path-split). Cloud CDN defaults on.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | Base-gcp |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | Yes | — | GCP CloudConnection UUID. |
project_id | string | No | — | Explicit GCP project override. |
name | string | Yes | — | Backend bucket name. |
bucket_name | string | Yes | — | GCS bucket name the backend bucket fronts. |
enable_cdn | boolean | No | — | Enable Cloud CDN; defaults to true. |
description | string | No | — | Optional resource description. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | No | — | Echoed connection UUID. |
project_id | string | No | — | Resolved GCP project. |
name | string | No | — | Backend bucket name. |
bucket_name | string | No | — | GCS bucket name fronted. |
enable_cdn | boolean | No | — | Cloud CDN enabled flag. |
description | string | No | — | Resource description. |
self_link | string | No | — | Self link of the backend bucket. |
operation_name | string | No | — | Compute operation name when created. |
created | boolean | No | — | True when created this run. |
backend_bucket | json | No | — | Sanitized provider backend bucket or operation. |
failure_reason | string | No | — | Human-readable failure reason. |
failed_step | string | No | — | Failed logical step. |
failed_layer | json | No | — | Engine failed layer if applicable. |
failed_at_state | string | No | — | State where failure occurred. |
error | string | No | — | Error message. |
error_type | string | No | — | Error class. |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | preflight | — |
creating | No | No | — | complete | — |
preflighting | No | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | preflight | preflighting | — |
preflighting | execute | creating | — |
creating | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "gcp.compute.backend_bucket.create",
"initial_data": {
"connection_uuid": "value",
"name": "value",
"bucket_name": "value"
}
}