部署云运行服务到GCP时的权限问题

发布于 2025-01-27 20:51:39 字数 827 浏览 6 评论 0 原文

错误:(gcloud.run.deploy)用户[]无权访问命名空间实例[my-project](或可能不存在):Google Cloud Run Service Agent无权获取服务帐户的访问令牌[email protected].请提供服务1122233445566@serverless-robot-prod.iam.gserviceaccount.com在服务帐户上的许可iam.serviceaccounts.getaccesstoken。另外,如果服务帐户未指定或在您部署的同一项目中,请确保为服务代理分配了Google Cloud Run Service Agent角色角色/run.serviceagent。

对于精明的非GCP,我应该确切启用什么?我将访问创建者令牌添加到所有相关的服务帐户中,这无济于事。我遵循了其他类似问题的所有建议,没有任何效果。

启用类似的东西怎么是如此复杂?

谢谢

ERROR: (gcloud.run.deploy) User [[email protected]] does not have permission to access namespaces instance [my-project] (or it may not exist): Google Cloud Run Service Agent does not have permission to get access tokens for the service account [email protected]. Please give service-112233445566@serverless-robot-prod.iam.gserviceaccount.com permission iam.serviceAccounts.getAccessToken on the service account. Alternatively, if the service account is unspecified or in the same project you are deploying in, ensure that the Service Agent is assigned the Google Cloud Run Service Agent role roles/run.serviceAgent.

For a non-GCP savvy, what should I enable exactly? I added Access Creator Token to all relevant service accounts and it didn't help. I followed all suggestions from other similar questions and nothing worked.

How come it's so complex to enable something like that?

Thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文