GCP Authentication
1. Local Development: gcloud CLI & Application Default Credentials
gcloud auth application-default loginprovider "google" {
project = var.gcp_project
region = var.gcp_region
}gcloud config configurations create dev
# Set project, region, etc.
gcloud config set project my-dev-project
gcloud config set compute/region us-central1
gcloud config configurations activate dev2. Service Account Key File (for CI/CD and Automation)
3. Workload Identity Federation (OIDC for CI/CD)
4. NixOS: Declarative GCP Credentials
Best Practices
References
Last updated