A Cloud Operations Engineer needs to relocate an existing workload project from a folder named 'Staging-Folder' to a folder named 'Production-Folder' within their Google Cloud resource hierarchy. The engineer already holds the Project Editor role (`roles/editor`) on the project being moved. However, running the command `gcloud beta resource-manager projects move` results in a permission denied error. Which IAM role configuration must be granted to the engineer on the resource hierarchy to allow this project relocation?
- Grant the Project Mover role (`roles/resourcemanager.projectMover`) on both the source folder ('Staging-Folder') and the destination folder ('Production-Folder').Cevap
- BGrant the Organization Administrator role (`roles/resourcemanager.organizationAdmin`) directly on the project being relocated.
- CGrant the Project Creator role (`roles/resourcemanager.projectCreator`) exclusively on the target 'Production-Folder'.
- DGrant the Project Owner role (`roles/owner`) on the root Organization node only.
Cevap
Grant the Project Mover role (`roles/resourcemanager.projectMover`) on both the source folder ('Staging-Folder') and the destination folder ('Production-Folder').
To move a project between folders in the Google Cloud resource hierarchy, a user requires permissions to detach the project from the current parent folder and attach it to the new parent folder. The predefined role `roles/resourcemanager.projectMover` provides these required capabilities when granted on both the source and target folder nodes.
Adım Adım Çözüm
Anahtar Kavram
Moving projects between resource hierarchy folders requires Project Mover permissions on both source and destination parent containers.