Docs
Reference

Google Cloud Run jobs

Environment variables on a Cloud Run job's first container, read back in plaintext and applied to the next execution.

Environment variables on a Cloud Run job's first container, read back in plaintext and applied to the next execution.

The connection

WhatThis provider
VendorGoogle Cloud
Keygcp-cloud-run-job-env
Availabilityavailable. You can connect it today.
Credential penv holdsgcp-service-account
Values read backyes
Activationon-next-deploy

What it moves

DirectionWhat it does
importReads names and values out of the store into penv.
exportWrites names and values from penv into the store.

When a written value goes live

on-next-deploy. A new value waits there and arrives with your next deploy.

What happens to a name that exists

DirectionPolicies you can pick
importskip_existing, new_version, fail
exportcreate_only, overwrite, overwrite_and_prune

How syncs work says what each one does.

How you connect

You paste a credential you already hold. penv seals it and never shows it again.

FieldLabelKindRequiredWhat it is
serviceAccountKeyService account keysecret, masked here and sealedyesThe JSON key file for a service account that can update this job.

What the connection asks for

Fixed when you connect, and shared by every mapping on it.

FieldLabelKindRequiredAdvancedWhat it is
projectIdProjecttextyesnoThe project holding the job. One connection covers one project.
regionRegiontextyesnoThe region this connection reaches. One connection covers one region.

What a mapping asks for

Answered once per environment you map.

FieldLabelKindRequiredAdvancedWhat it is
jobNameJobtextyesnoThe job whose variables this environment maps onto.

Permissions it needs

penv probes for these when it verifies the connection.

PermissionDirectionsBlockingWithout it
run.jobs.getevery directionyesPreview cannot read the job's variables.
run.jobs.listevery directionnoWe cannot confirm the key reaches this project and region before a sync runs.
run.jobs.updateexportyesExport cannot write anything.
run.operations.getexportnoWe cannot confirm the update finished applying.