【问题标题】:Permission when deploying gcloud app engine部署 gcloud 应用引擎时的权限
【发布时间】:2020-10-21 07:45:07
【问题描述】:

我正在尝试部署应用程序,但 gcloud 通知我没有权限,即使我是具有 Owner 规则的帐户的主要用户,请参阅: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

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

【问题讨论】:

  • 你能分享你为此运行的完整命令吗? gcloud app ...
  • @FerVelvet gcloud app deploy site.yaml --version=2

标签: google-app-engine gcloud


【解决方案1】:

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

您的第一张图片中的信息非常清楚。

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

我建议检查 App Engine 中版本 2 的部署是否没有停止或部署到新版本,例如只是为了测试:

gcloud app deploy site.yaml --version=5165165

【讨论】:

  • 更改版本不起作用。问题还在继续。
  • 嗨卡洛斯,我试图重现这个问题,但我无法做到。我建议联系 GCP 支持人员,他们可以帮助您解决此问题。
猜你喜欢
  • 2018-02-18
  • 2022-01-25
  • 1970-01-01
  • 1970-01-01
  • 2021-04-12
  • 1970-01-01
  • 2023-03-27
  • 2019-02-20
  • 1970-01-01
相关资源
最近更新 更多