1
votes

I am trying to upload a file to google cloud storage from a python script on google compute engine and get error below. Script runs fine as google cloud function. What right way to permission bucket ?

Adding new file
403 POST https://www.googleapis.com/upload/storage/v1/b/XXX/o?uploadType=multipart: ('Request failed with status code', 403, 'Expected on
e of', <HTTPStatus.OK: 200>)
1

1 Answers

1
votes

You can have a look to this page

You can customize your service account per user this one per default.

However, some libraries perform API call like bucket.list or bucket.get and you have to authorize in addition of storage Object read/write role, the storage admin role. Or create a custom role.