We'll cover the gcloud config configurations
command. It can be used to switch between google projects quickly.
Gcloud Config Cheatsheet
List
gcloud config configurations list
Create dev configuration
gcloud config configurations create dev
gcloud config set project demo-dev-111111
gcloud config set account me@email.com
gcloud config set compute/region us-central1
gcloud config set compute/zone us-central1-b
Create prod configuration
gcloud config configurations create prod
gcloud config set project demo-prod-222222
gcloud config set account me@email.com
gcloud config set compute/region us-central1
gcloud config set compute/zone us-central1-b
Activate different configurations
gcloud config configurations activate dev
gcloud config configurations activate prod
Config Files Themselves
~/.config/gcloud/active_config
~/.config/gcloud/configurations/config_dev
~/.config/gcloud/configurations/config_prod
Test
gcloud compute instances list
Links
Google Console Guides
1h 54m
1h 54m
Terraform Fundamentals 101
1h 36m
1h 36m
Terraform HCL Fundamentals
1h 53m
1h 53m
Terraspace Fundamentals Google
2h 19m
2h 19m
Terraspace Cloud
2h 33m
2h 33m
Terraspace Google Cloud
1h 12m
1h 12m
Google GKE Kubernetes
3h 29m
3h 29m
Google GKE Kubes
1h 17m
1h 17m
Get full access to these great resources
All for less than the price of coffee a day
44 courses
286 lessons
46+ hours