【问题标题】:gsutil cp - AccessDeniedException with a compute engine service accountgsutil cp - 具有计算引擎服务帐户的 AccessDeniedException
【发布时间】:2017-09-15 23:13:42
【问题描述】:

使用 Google Cloud Launcher,我们部署了一个 Mongodb 副本集。

我们知道配置要上传到存储桶的备份。

在 VM Cloud API 访问范围 with the machine stoped 下,我们已授予对存储的完全访问权限

当我们尝试使用gsutil cp 上传时,我们收到以下错误:

Copying file://whateverfilewe try [Content-Type=application/octet-stream]...
AccessDeniedException: 403 Insufficient OAuth2 scope to perform this operation. 
Acceptable scopes: https://www.googleapis.com/auth/cloud-platform

阅读文档,scope seems 太多了。

我们应该如何进行才能访问计算引擎实例中的 bash 脚本(使用机器分配的服务帐户)上传访问同一项目中的存储桶的权限?是否真的需要完全访问权限?

【问题讨论】:

  • 关于专业服务器或网络相关基础设施管理的问题对于 Stack Overflow 来说是无关紧要的,除非它们直接涉及编程或编程工具。您可以通过 Server Fault 获得帮助。

标签: mongodb google-compute-engine


【解决方案1】:

似乎 gsutil 正在缓存凭据。这条评论给了我解决方案:

gsutil copy returning "AccessDeniedException: 403 Insufficient Permission" from GCE

【讨论】:

    猜你喜欢
    • 2018-11-10
    • 2018-11-15
    • 2021-10-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-11-16
    • 1970-01-01
    相关资源
    最近更新 更多