Codelab: Cloud Run Day 2025 - Setup

1. Introduction

Welcome to Cloud Run day 2025! All the workshops will be based on the theme of "News".

2. Setup Google Cloud Environment

Create a project

  1. In the Google Cloud Console, on the project selector page, select or create a Google Cloud project. SUGGESTION: call it "cloud-run-workshop"
  2. Make sure that billing is enabled for your Cloud project. Learn how to check if billing is enabled on a project.
  3. Activate Cloud Shell by clicking this link.
  4. To set the active account, run the following command on the Cloud Shell:
gcloud config set account <ACCOUNT>
  1. Check your authentication by running the following command on the Cloud shell:
gcloud auth list
  1. Confirm the project ID using the following command:
gcloud config list project
  1. Set the project ID variable. Replace <YOUR_PROJECT_ID> with the ID from the previous step:
export PROJECT_ID=<YOUR_PROJECT_ID> && gcloud config set project $PROJECT_ID
export REGION=europe-west1 && gcloud config set run/region $REGION
  1. Set Google API key:

Generate your API key using https://aistudio.google.com/app/apikey and paste the key here:

export GOOGLE_API_KEY=PASTE_YOUR_ACTUAL_API_KEY_HERE
export GOOGLE_GENAI_USE_VERTEXAI=FALSE
  1. Enable the required APIs:
gcloud services enable cloudresourcemanager.googleapis.com \
    servicenetworking.googleapis.com \
    run.googleapis.com \
    cloudbuild.googleapis.com \
    artifactregistry.googleapis.com \
    aiplatform.googleapis.com \
    compute.googleapis.com \
    storage.googleapis.com

(This could take a few minutes.)

Clone Code Samples for Cloud Run Day Workshops

To access the sample code for all workshops, clone the entire repository:

git clone https://github.com/abhishekr700/Cloud-Run-Day-Workshop-2025.git