【发布时间】:2018-07-31 22:08:55
【问题描述】:
我已经设置了一个计算引擎实例,用于集中维护和更新 App Engine Flex 实例。这样做的一个原因是将数据库和其他凭据保存在 Google 项目中,而不是将它们存储在本地开发机器上。
当我尝试灵活部署时
gcloud app deploy
我收到一个错误
ERROR: (gcloud.beta.app.deploy) Permissions error fetching application [<project here>]. Please make sure you are using the correct project ID and that you have permission to view applications on the project.
服务帐户是默认计算引擎帐户,我已在 IAM 中为其启用编辑者角色。我还尝试启用所有 App Engine 角色,但并没有改变这种情况。
有没有办法从 Compute Engine 进行部署,如果有,正确的凭据是什么?还是我在这里遗漏了一些步骤?
【问题讨论】:
标签: google-app-engine google-cloud-platform google-compute-engine app-engine-flexible