问题描述
username@instance-1:~$ gsutil -u absolute-bison-99999 cp gs://file.sam gs://username_bucket_1
AccessDeniedException: 403 9999-compute@developer.gserviceaccount.com does not have storage.objects.list access to the Google Cloud Storage bucket.
username@instance-1:~$
在我的 IAM 中,我为 9999-compute@developer.gserviceaccount.com 担任以下角色。为什么它仍然不允许访问?
Editor
Owner
Storage Admin
Storage Object Admin
Viewer
解决方法
错误状态:
import numpy
能否检查该特定存储桶的 IAM 角色?
例如,服务帐号在一个项目中拥有的 IAM 角色可能不足以处理来自另一个项目的资源。