Skip to content

Instantly share code, notes, and snippets.

@torstenek
Created October 31, 2022 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torstenek/faf2f37677b092016f30010992037f1d to your computer and use it in GitHub Desktop.
Save torstenek/faf2f37677b092016f30010992037f1d to your computer and use it in GitHub Desktop.
# Check your existing configuration
gcloud config configurations list

# Activete or Create an empty one
gcloud config configurations activate $CONFIG_NAME
gcloud config configurations create $CONFIG_NAME

# Set the project 
gcloud config set project $PROJECT

# Check and / or set the compute region
gcloud compute regions list
gcloud config set default_region $REGION

# Set the compute zone
gcloud compute zones list
gcloud config set compute/zone $ZONE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment