Configure a Cloud Run job in Application Design Center

A Cloud Run job is a containerized application that runs a specific, non-HTTP task and then exits. You might use a Cloud Run job for tasks that don't need to run continuously or serve requests. For example, scheduled batch processing or data transformations.

This document describes the connections and parameters you can configure when using App Design Center to create a Cloud Run job component. The configuration parameters are based on the terraform-google-cloud-run/modules/job-exec Terraform module.

Component connections

The following table includes the components that you can connect to a Cloud Run job component, and the resulting updates to your application and its generated Terraform code.

Connected component
Application updates
Background information
  • The Cloud Run job uses the service account as a service identity.
  • The service account email is added to the Cloud Run job.
  • The Cloud Run job can read and write data to the Cloud SQL (MySQL) instance.
  • The Cloud Run job can read and write data to the Cloud SQL (PostgreSQL) instance.
  • The Cloud Run job can communicate with the Cloud Storage bucket.
  • The Cloud Storage bucket name is added to the Cloud Run job.

Required configuration parameters

If your template includes a Cloud Run job, 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 job. Configure components
Name
name Cloud Run services
Region
The Cloud Run service deployment location. Cloud Run locations
Image
image Deploying container images

Optional configuration parameters

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

Feature
Parameter name
Description and constraint information
Background information
Create Service Account
Create a new service account for the Cloud Run job.
Service Account Project Roles
Roles to grant to the newly created service account. Enable Create Service Accountand don't provide input for Service Account.
Exec
Whether to execute the job after it's created.
Volume Mounts
Name
Vpc Access
Connector
Cloud Run Deletion Protection
Prevents Terraform from destroying or recreating Cloud Run jobs and services.
Design a Mobile Site
View Site in Mobile | Classic
Share by: