gcp listing storage account : HTTPError 403: your-service-account.iam.gserviceaccount.com does not have storage.buckets.list access to the Google Cloud project. Permission 'storage.buckets.list' denied on resource (or it may not exist).

While trying to configure permission for a service account via impersonation, 

gcloud storage ls --impersonate-service-account=your-service-account.iam.gserviceaccount.com 

I got the following error message :-

HTTPError 403: your-service-account.iam.gserviceaccount.com does not have storage.buckets.list access to the Google Cloud project. Permission 'storage.buckets.list' denied on resource (or it may not exist). 


This is a permission issue, you can go into IAM -> Grant Access -> Select your principal in this case it is "your-service-account.iam.gserviceaccount.com " and then add role ""Storage Object Admin" - which provides access to all buckets.




Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type