youtube image
From YouTube: Setting Up OIDC to Get Credentials from Google Cloud

Description

Contents:
1:11 - Steps overview
2:00 - Creating the workload ID pool and provider
6:22 - Creating a service account
10:18 - Creating a blank GitLab project
11:18 - Writing a script to generate a GCP access token
14:14 - Setting CI/CD variables to point to a GCP account
16:57 - Configuring a pipeline to get credentials

Docs:
GitLab OIDC for GCP: https://docs.gitlab.com/ee/ci/cloud_services/google_cloud
GCP Workload Identity Pool and Provider: https://cloud.google.com/iam/docs/workload-identity-federation-with-other-clouds#create_the_workload_identity_pool_and_provider