在 GCP 中迁移项目时出错,有人可以帮助我吗?

Leo*_*rdo 5 migration google-cloud-platform

我正在尝试将 2 个源自“无组织”的项目迁移到 GCP 中新创建的组织。

用户拥有项目级权限: Owner

在组织级别,用户拥有以下权限: Organization Administrator, Project Creator

当尝试执行迁移时,它显示错误:

Permission denied
You do not have the following required permission to perform this action:
"resourcemanager.projects.update"
Run Code Online (Sandbox Code Playgroud)

我也尝试通过命令执行该过程,但它也不起作用

ERROR: (gcloud.beta.projects.move) User ["my user"] does not have 
permission to access projects instance ["my project"] (or it may not exist):
The caller does not have permission.
Run Code Online (Sandbox Code Playgroud)

用户在组织级别参与的组权限:Support Account Administrator, Organization Role Administrator, Organization Policy Administrator, Folder admin, Organization Administrator, Project Creator, Project Mover,Security Center Admin

组织级别的用户权限:Organization Administrator,Project Mover

项目级别的用户权限:Owner, Project Mover,Organization Administrator

您还有更多建议吗?

rri*_*all 0

以下说明仅适用于在组织内移动项目(例如本例)。要移动项目,您需要以下 IAM 角色:

  1. 拥有项目的 resourcemanager.projects.update 权限,这通常来自于项目的项目编辑者或项目所有者角色。

  2. 对源文件夹和目标文件夹都具有 resourcemanager.projects.move 权限。此权限通常是项目所有者、项目编辑者、文件夹管理员或文件夹移动者角色的一部分。如果资源不在文件夹中,您将需要组织节点上的此权限。

要将项目移至另一个组织:

  1. 在 Google Cloud Console 中,转到管理资源页面。
  2. 从页面左上角的组织下拉列表中选择您的组织。
  3. 单击您的项目行,从资源列表中选择您的项目。请注意,您不得单击项目名称,否则您将进入项目的 IAM 页面。
  4. 单击该行中的选项菜单(垂直省略号),然后单击“移动”。
  5. 单击“浏览”选择要将项目移动到的文件夹。
  6. 单击“移动”。

如果您确保您的帐户具有指定的所有权限但仍然收到错误,您可能需要按照以下链接尝试资源管理器 API:https: //cloud.google.com/resource-manager/docs/project-迁移#perform_migration

希望你觉得这个有用。问候