部署gcloud应用引擎时的权限

时间:2020-06-30 22:26:33

标签: google-app-engine gcloud

我正在尝试部署应用程序,但是gcloud通知我我没有权限,即使我是拥有者规则的帐户的主要用户,请参阅:Deploy console

我的gcloud auth list

              Credentialed Accounts
ACTIVE  ACCOUNT
*       hi@myemail.com
        myproject@appspot.gserviceaccount.com

To set the active account, run:
    $ gcloud config set account `ACCOUNT`

我的gcloud init(默认项目正常):

Welcome! This command will take you through the configuration of gcloud.

Settings from your current configuration [myproject] are:
core:
  account: hi@myemail.com
  disable_usage_reporting: 'False'
  project: myproject

Pick configuration to use:
 [1] Re-initialize this configuration [myproject] with new settings 
 [2] Create a new configuration

项目“ myproject”的我的IAM和管理员权限:IAM List

如何解决这个问题?这是我帐户中唯一的项目。

1 个答案:

答案 0 :(得分:0)

我认为问题是因为您试图覆盖已停止版本2的部署。

该消息在您的第一张图片中非常清晰。

无法将流量分配给已停止的版本2。请确保仅将流量分配给服务的版本。

我建议检查版本2的App Engine中的部署是否未停止或部署到新版本,例如仅用于测试:

gcloud app deploy site.yaml --version=5165165