Configure Cloud Run in Application Design Center

Cloud Run is a managed compute platform that lets you run containers directly on top of Google's scalable infrastructure.

For more information, see Cloud Run overview.

This document describes the parameters you can configure when using App Design Center to create a Cloud Run service.

Required configuration parameters

If your template includes a Cloud Run component, you must configure the following parameters before you deploy.

Parameter name

Description and constraints

Background information

Project ID

The project where you want to deploy the Cloud Run resource.

Configure components

Region

The Cloud Run service deployment location.

Cloud Run locations

Service Name

name Cloud Run service

Optional configuration parameters

The following parameters are optional. To display advanced parameters, in the Configuration area, select Show advanced fields.

Feature

Subfeature

Parameter name

Description and constraint information

Background information

Containers

Container Name

name Building containers

Container Image

image Deploying container images to Cloud Run

Working Dir

The container's working directory. If not specified, the container runtime's default is used, which might be configured in the container image.

workingDir

Depends on Container

dependsOn[] Configure container start order for sidecar deployments

Container Args

args[] Configure containers for services

Container Command

command Configure containers for services
Env Vars

Key

name Environment variables for services

Value

value Environment variables for services
Env Secret Vars

Key

EnvVarSource Manage secrets

Secret

secret Manage secrets

Version

version Manage secrets
Volume Mounts

Name

name Connect from Cloud Run

Mount Path

mountPath Connect from Cloud Run
Ports

Name

name Use HTTP/2 for services

Container Port

containerPort Use HTTP/2 for services
Resources

CPU

limits Configure CPU limits for services

Memory

limits Configure memory limits for services

CPU Idle

Whether CPU is only allocated during requests.

cpuIdle

Startup CPU Boost

startupCPUBoost Set startup CPU boost
Startup Probe

Failure Threshold

failureThreshold Configure container health checks for services

Initial Delay Seconds

initialDelaySeconds Configure probes

Timeout Seconds

timeoutSeconds Configure probes

Period Seconds

periodSeconds Configure probes

HTTP Get Path

path Configure probes

HTTP Get Port

port Configure probes

HTTP Headers Name

name Configure probes

HTTP Headers Value

value Configure probes

TCP Socket Port

port The default TCP startup probe

GRPC Port

port Configure probes

GRPC Service

service Configure probes

Liveness Probe

livenessProbe Use cases

Description

description Set service descriptions

Create Service Account

Create a new service account for the Cloud Run service.

Configure service identity for jobs

Service Account Project Roles

Roles to grant to the newly created service account. Enable Create Service Account and don't provide input for Service Account.

Configure service identity for jobs

Members

Users and service accounts that can invoke the service.

Configure service identity for jobs

VPC Access

Connector

connector VPC with connectors

Egress egress Control egress service traffic

Network Interfaces

Network network Deploy a service
Subnetwork subnetwork Deploy a service
Tags tags Deploy a service

Cloud Run Deletion Protection

Prevents Terraform from destroying or recreating Cloud Run jobs and services.

deletion_protection

Enable Prometheus Sidecar

Enable Promethus sidecar in the Cloud Run instance.

Write Prometheus metrics by using the Prometheus sidecar

Volumes

Name

name Configure an in-memory volume
Secret Secret secret Make a secret accessible to Cloud Run
Default Mode defaultMode
Path path Make a secret available to Cloud Run
Version version Make a secret available to Cloud Run
Mode mode Make a secret available to Cloud Run
Cloud SQL Instance Instances instances[] Connect from Cloud Run
Empty Dir Medium medium Configure in-memory volume mounts for services
Size Limit sizeLimit Configure in-memory volume mounts for services
GCS Bucket bucket Configure Cloud Storage volume mounts for services
Read Only readOnly Configure Cloud Storage volume mounts for services
NFS Server server Configure NFS volume mounts for services
Path path Configure NFS volume mounts for services
Read Only readOnly Configure NFS volume mounts for services

Service Scaling

Min Instance Count

minInstanceCount Set minimum instances for services

Ingress

IngressTraffic Restrict network ingress for Cloud Run

Revision

revision Cloud Run service revisions

Template Scaling

Min Instance Count

minInstanceCount Set minimum instances for services
Max Instance Count maxInstanceCount About maximum instances

Encryption Key

encryptionKey Using customer managed encryption keys

Max Instance Request Concurrency

maxInstanceRequestConcurrency Maximum concurrent requests for services

Session Affinity

sessionAffinity Set session affinity for services

Execution Environment

executionEnvironment About service execution environments

Traffic

Type

type Rollbacks, gradual rollouts, and traffic migration
Percent percent Rollbacks, gradual rollouts, and traffic migration
Revision revision Rollbacks, gradual rollouts, and traffic migration
Tag tag Rollbacks, gradual rollouts, and traffic migration

Service Labels

Key

labels Configure labels for services
Value labels Configure labels for services

Service Annotations

Key

annotations annotations
Value annotations annotations

Client

Name

Arbitrary identifier for the API client.

client
Version

Arbitrary identifier for the version identifier.

clientVersion

Launch Stage

LaunchStage Product launch stages

Custom Audiences

customAudience Set custom audiences for services

Binary Authorization

Breakglass Justification

breakglassJustification Use breakglass
Use Default useDefault Use Binary Authorization

Template Labels

Key

labels Configuring labels for services
Value labels Configuring labels for services

Template Annotations

Key

annotations annotations
Value annotations annotations

Timeout

timeout Set request timeout for services

Service Account

serviceAccount Configure service identity for services