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
- In the Google Cloud Console, on the project selector page, select or create a Google Cloud project. SUGGESTION: call it "cloud-run-workshop"
- Make sure that billing is enabled for your Cloud project. Learn how to check if billing is enabled on a project.
- Activate Cloud Shell by clicking this link.
- To set the active account, run the following command on the Cloud Shell:
gcloud config set account <ACCOUNT>
- Check your authentication by running the following command on the Cloud shell:
gcloud auth list
- Confirm the project ID using the following command:
gcloud config list project
- 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
- 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
- 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