The script provided at class GCS & GCE Challenge Lab isn’t working fine for me and I couldn’t realize what is wrong.
I’ve got AccessDeniedException even thoght the instance has the [project-id]firstname.lastname@example.org service account and it is a Project Editor.
Copying the log file to the bucket... + gsutil cp machine-my-vm-4-finished.txt gs://sylvio-vm-logs/ Copying file://machine-my-vm-4-finished.txt [Content-Type=text/plain]... AccessDeniedException: 403 Insufficient Permission
It worked after I changing Access Scopes to full access. Cheers
Good for you, Sylvio! This has been a very effective learning experience for you, I think: you’ll always remember (because you understand how it works) that the scopes and the permissions must both allow the action. 🙂 Keep being awesome!