【发布时间】:2020-11-19 12:41:01
【问题描述】:
我创建了一个 EC2 实例,该实例默认创建具有默认权限的服务帐户。所以当我查看默认权限的时候发现服务账号就是下面所有这些权限。
https://www.googleapis.com/auth/devstorage.read_only
https://www.googleapis.com/auth/logging.write
https://www.googleapis.com/auth/monitoring.write
https://www.googleapis.com/auth/servicecontrol
https://www.googleapis.com/auth/service.management.readonly
https://www.googleapis.com/auth/trace.append
现在我尝试使用以下命令列出存储桶内的所有对象:-
gsutil ls gs://mybucketname
发现错误
AccessDeniedException: 403 XXXX@developer.gserviceaccount.com does not have storage.objects.list access to the Google Cloud Storage bucket.
为什么即使我的服务帐户用户拥有devstorage.read_only,我也会收到此错误?
我对 GCP 非常陌生,所以请告诉我。
【问题讨论】:
标签: google-cloud-platform google-cloud-storage