Trying to fire off a gcloud snapshot from a cron job on a ubuntu compute-engine. When executed from an ssh session:
gcloud compute disks snapshot disk-1 --zone=us-west1-b --snapshot-names=${snapshot-name}
creates a snapshot with the given name in zone "us-west1-b"
However, the same statement issued from a cron job creates the snapshot in region "us"
Can anyone explain this and how to get the snapshot created in the desired zone?
Not sure if this matters or not, but the vm is in us-west1-b (Oregon), so the cron job executes from that zone. I am in Montana, so probably am considered in us-west3 (Utah) when executing the command from ssh.