Deploy / Update Service
cloud_run.update_service
ActionGoogle Cloudconnection required
Calls Cloud Run Admin API v2 PATCH /services/{s}?updateMask=template.
Deploy a new revision of a Cloud Run service (image, env, resources, scaling).
Connection
- Required
- Yes — the node will not save without one
- Auth type
- OAuth 2.0
- Providers
- Google Cloud Run
- Secret shape
- {"client_id", "client_secret", "refresh_token"}
- Config it needs
- project_id, region
- Resolved by
- config.connection_id, else node.connection_id
Configuration
10 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
project_id GCP project id (overrides connection). | string | No | — | — | — |
region Cloud Run region (overrides connection). | string | No | us-central1 | — | — |
service Service name. | string | Yes | — | — | — |
image Container image to deploy; the tag or digest is what changes. | string | No | — | — | europe-docker.pkg.dev/p/r/api:sha |
env Env vars as a JSON object {NAME: value}. Replaces the container's env. | object | No | — | — | — |
cpu CPU limit, e.g. '1' or '2000m'. | string | No | — | — | — |
memory Memory limit, e.g. '512Mi'. | string | No | — | — | — |
service_account Runtime service account email. | string | No | — | — | — |
min_instances Minimum instances. | number | No | — | ≥ 0 | — |
max_instances Maximum instances. | number | No | — | ≥ 0 | — |
- At least one of image, env, cpu, memory, service_account, min_instances, max_instances must be set.
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"image": "europe-docker.pkg.dev/p/r/api:sha",
"region": "us-central1"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
ok | boolean | — |
operation Feed this to cloud_run.wait_operation. | string | — |
done Almost always false — the deploy is asynchronous. | boolean | — |
error Set only when Cloud Run rejected the patch. | object | — |
{
"done": false,
"error": {},
"ok": false,
"operation": ""
}Notes
- Only the fields you fill in change; the rest of the live template is read and sent back unchanged.
- Returns as soon as Cloud Run accepts the patch — the old revision is still serving. Add cloud_run.wait_operation before anything that talks to the service.
Related Google Cloud Run nodes
See Deploy / Update Service run in a workflow.
In a technical demo we add the Google Cloud Run connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.