【发布时间】: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