Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Cloud Storage ACL confusion

I'm the owner of a Google Cloud project, with a Google Cloud Storage bucket inside. All our backups are moved to this bucket. When I try to retrieve some of the backups, I get a permission denied. I'm not able to do anything but to list the bucket.

When I try to reset the bucket ACL with

gsutil acl ch -u [email protected]:FC gs://abc/**

i get the following error.

CommandException: Failed to set acl for gs://abc/1234.sql. Please ensure you have OWNER-role access to this resource.

Which makes no sense, since I'm the project and bucket owner.

like image 845
Hedam Avatar asked Jan 26 '17 17:01

Hedam


1 Answers

I gave myself "Storage Admin" and "Storage Object Admin/Creator/Viewer" in IAM rights and I'm now able to access all files.

like image 165
Hedam Avatar answered Sep 19 '22 15:09

Hedam