gpt4 book ai didi

google-compute-engine - "You don' t 有权使用 GCloud 启用计算引擎

转载 作者:行者123 更新时间:2023-12-04 22:05:37 25 4
gpt4 key购买 nike

我为用户创建了一个新项目,并赋予他们 Compute Instance Admin 的角色。但是,当他们第一次加载项目时,他们收到错误消息“

You don't have permission to enable Compute Engine.

作为所有者,我需要访问项目的计算页面以对其进行初始化。届时,用户便可以访问 Google Compute。

有没有办法为项目自动启用 Compute Engine?或者,是否有我可以添加用户以启用它的角色?

最佳答案

Is there a way to automate enabling Compute Engine for a project?

随着Cloud SDK安装,

$ gcloud service-management enable --project foo compute-component.googleapis.com

应该可以解决问题。否则,您可以调用 Google Service Management通过其他方法。


Or, is there a role I can add the user to enable it?

来自API docs :

Authorization requires the following Google IAM permission on the specified resource service_name:

servicemanagement.services.bind

顺便说一下,我不知道哪些角色拥有该权限。

关于google-compute-engine - "You don' t 有权使用 GCloud 启用计算引擎,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43896234/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com