【问题标题】:403 when deploying to app engine using service account使用服务帐户部署到应用引擎时出现 403
【发布时间】:2017-12-16 06:09:46
【问题描述】:

我在使用服务帐户时将 Node 项目部署到 Google App Engine 时遇到问题。我收到 403 错误。

{
  "error": {
    "code": 403,
    "message": "Operation not allowed",
    "status": "PERMISSION_DENIED",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.ResourceInfo",
        "resourceType": "gae.api",
        "description": "The \"appengine.applications.get\" permission is required."
      }
    ]
  }
}

我已为我的服务帐户分配了 App Engine AdminStorage Object Admin 角色。我正在使用下载的 JSON 密钥文件进行部署。

然后我运行这两个终端命令:

gcloud auth activate-service-account --key-file appEngineAuth.json
gcloud --quiet --verbosity=debug app deploy app.yaml --promote --log-http

这是我的 app.yaml 文件:

runtime: nodejs
env: flex

如果我运行gcloud auth list,我会看到我的服务帐户用户被选中。如果我执行 gcloud init 并完成使用我的 Google 帐户的过程,我可以进行部署,但我无法从我的 CI 服务器执行此操作。

我已经删除并重新创建了几次我的服务帐户,并确定我使用的是正确的密钥文件。我什至尝试为我的服务帐户提供Owner 角色,但没有奏效。

【问题讨论】:

    标签: google-app-engine deployment


    【解决方案1】:

    结果证明这是一个应用引擎错误。支持大约需要一周时间才能解决此问题。作为临时工作,我必须创建一个新应用程序并使用它。这个错误只影响了我的六个应用程序之一。

    Google 案例编号:案例 15238823

    【讨论】:

    • 你有这个错误的问题编号吗?如果是的话,最好把它作为参考。
    猜你喜欢
    • 1970-01-01
    • 2021-09-15
    • 1970-01-01
    • 1970-01-01
    • 2018-03-16
    • 1970-01-01
    • 1970-01-01
    • 2012-08-23
    • 2019-10-20
    相关资源
    最近更新 更多