I managed to create and execute a snapshot of the script if I use gcloud auth to use my personal account. but if I have cron run as root or as the selected user, nothing happens during cron.
I used this script https://gist.github.com/peihsinsu/73cb7e28780b137c2bcd and it works great, and as the author notes: "Install gcloud and auth first",
My problem is using my personal account, not the service account.
When you run gcloud auth login, you get a very important message
Your credentials may be visible to others who have access to this virtual machine. Are you sure you want to authenticate using your personal account?
Any thoughts or suggestions to avoid this security risk.
source
share