Penv Cloud
Start free
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.

Connection

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

Directions

DirectionWhat it does
importWe read names and values out of the store into your environment.
exportWe write names and values from your environment into the store.

Activation

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

Conflict policies

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

How syncs work says what each one does.

Connect

Paste a credential from the vendor. We seal it and never show it again.

FieldLabelKindRequiredWhat it is
serviceAccountKeyService account keysecret; we mask it here and seal ityesThe JSON key file for a service account that can update this job.

Connection fields

You set these when you connect. Every mapping on the connection shares them.

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

Mapping fields

You answer these once per environment you map.

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

Required permissions

We probe for these when we verify 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.