Google Cloud Run Deploy错误:缺少必要的权限错误 [英] Google Cloud Run Deploy error: Missing necessary permission error

查看:75
本文介绍了Google Cloud Run Deploy错误:缺少必要的权限错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当尝试将我的容器(或hello world容器)部署到google cloud运行时,我收到此错误:

When trying to deploy my container (or the hello world container) to google cloud run I receive this error:

ERROR: (gcloud.run.deploy) Cloud Run error: Internal system error. Missing necessary permission for service-<ID>@serverless-robot-prod.iam.gserviceaccount.com on resource <PROJECT ID>

我可以看到错误中提到的服务帐户位于我的IAM仪表板中,并且具有 Google Cloud Run Service Agent 角色.我什至尝试赋予它所有者"角色,但这没有用.

I can see that the service account mentioned in the error is in my IAM dashboard and has the Google Cloud Run Service Agent role. I even tried giving it the Owner role, but it didn't work.

我尝试将--service-account标志包含在同一服务帐户中,并收到此错误:

I tried including the --service-account flag with the same service account and receive this error:

PERMISSION_DENIED: Permission 'iam.serviceaccounts.actAs' denied on service account service-<ID>@serverless-robot-prod.iam.gserviceaccount.com (or it may not exist).

我知道这没有道理.

我也尝试通过控制台ui进行此部署,但是收到了相同的错误(第一个错误).

I also tried this deploy through the console ui, but received the same error (the first one).

如何解决此权限错误?

推荐答案

正如Dustin所说,发生了中断,影响了IAM权限.现在,中断已解决,我的部署正在工作!

As Dustin mentioned, there was an outage affecting IAM permissions. Now that the outage has been resolved, my deployment is working!

这篇关于Google Cloud Run Deploy错误:缺少必要的权限错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆