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.

FieldTypeRequiredDefaultConstraintsExample
project_id
GCP project id (overrides connection).
stringNo———
region
Cloud Run region (overrides connection).
stringNous-central1——
service
Service name.
stringYes———
image
Container image to deploy; the tag or digest is what changes.
stringNo——europe-docker.pkg.dev/p/r/api:sha
env
Env vars as a JSON object {NAME: value}. Replaces the container's env.
objectNo———
cpu
CPU limit, e.g. '1' or '2000m'.
stringNo———
memory
Memory limit, e.g. '512Mi'.
stringNo———
service_account
Runtime service account email.
stringNo———
min_instances
Minimum instances.
numberNo—≥ 0—
max_instances
Maximum instances.
numberNo—≥ 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

FieldTypeExample
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.

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.