Skip to content

Instantly share code, notes, and snippets.

@josepsmartinez
Created April 27, 2022 00:29
Show Gist options
  • Save josepsmartinez/600867d5245248cc8715fe5b8a00afca to your computer and use it in GitHub Desktop.
Save josepsmartinez/600867d5245248cc8715fe5b8a00afca to your computer and use it in GitHub Desktop.
gcloud zone of instance
# https://techoverflow.net/2019/04/01/how-to-find-zone-of-google-cloud-vm-instance-on-command-line/
gcloud compute instances list --filter='name="${INSTANCE_NAME}"' --format 'get(zone)' | rev | cut -d/ -f1 | rev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment