I've set up a cron job on a google compute ubuntu system to take a snapshot. When run from an ssh session, the cron script creates a snapshot fine. However, when run as root from a cron job, the
"gcloud compute disks snapshot"
command fails with the error
"Insufficient Permission: Request had insufficient authentication scopes."
I understand the permission required is compute.disks.createSnapshot and roles which provide this permission are
roles/compute.instanceAdmin
roles/compute.instanceAdmin.v1
roles/compute.storageAdmin
However, when I look at IAM Members for the project I see no root to which I can give the appropriate role. How do I establish root on a VM instance as having the premissions required to create a snapshot?