部署Google服务帐户时没有访问应用程序的权限

部署Google服务帐户时没有访问应用程序的权限

本文介绍了部署Google服务帐户时没有访问应用程序的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

按如下所示创建具有权限的Google服务帐户后-部署失败,并显示消息.我不明白哪里出了问题.

After creating google service account with permission as shown below - deployment fails with message . I am failing to understand where this is going wrong.

====

$ gcloud iam service-accounts get-iam-policy [email protected]
bindings:
- members:
  - serviceAccount:[email protected]
  role: roles/owner
etag: Bxxxxxxxxg=

====

$ gcloud auth activate-service-account --key-file ../a.json
Activated service account credentials for: [[email protected]]

$ gcloud app deploy
ERROR: (gcloud.app.deploy) You do not have permission to access app [appid].

推荐答案

现在可以正常使用了.

$ gcloud app deploy --log-http --verbosity=debug

失败的原因似乎与启用App Engine API有关(链接显示在命令输出中).启用api-然后尝试再次部署(这次不使用--log-http,因为这会导致gcloud崩溃).

The reason why it was failing, seemed to be related to enabling the App Engine API (link was shown in command output). Enable the api - then try deploying again (this time without --log-http as this is resulting in a gcloud crash).

您可以通过Google Cloud Platform API控制台页面启用"Google App Engine Admin API". https://console.cloud.google.com/apis/api/appengine.googleapis.com/

You can enable the "Google App Engine Admin API" through the Google Cloud Platform API console page. https://console.cloud.google.com/apis/api/appengine.googleapis.com/

这篇关于部署Google服务帐户时没有访问应用程序的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-20 19:50