I would like gcloud to use a specific .config
directory that I know the path of. Is there a way to force it to use this directory?
You can change it by running [gcloud config set compute/zone NAME]. Your project default Compute Engine region has been set to [us-west1]. You can change it by running [gcloud config set compute/region NAME].
After you set your project's default GCP resource location, you cannot change it. Note that your default GCP resource location only applies to your default Cloud Storage bucket. You can create multiple buckets, each with their own location.
Configurations are stored in your user config directory (typically ~/. config/gcloud on MacOS and Linux, or %APPDATA%\gcloud on Windows); you can find the location of your config directory by running gcloud info --format='value(config.
You can set the environment variable
CLOUDSDK_CONFIG=/path/to/dir
to override the default value of ~/.config/gcloud
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With