The Shared VPC documentation says that setting up the Host VPC requires "Compute Shared VPC Admin" or compute.xpnAdmin permissions. When using AIM Grant Access form, the Select a Role filter says No Matches when I search for either of those terms.
What is the correct IAM Role to assign for Host VPC Administrators?
Note: I found one "Solved" question but it references the same terms that don't appear in IAM.
Solved! Go to Solution.
SOLVED! The "Compute Shared VPC Admin" role can only be assigned at the FOLDER or ORG level, not at the Project level. (whine: it'd be nice if that was noted somewhere in IAM or the VPC docs. The Shared VPC doc kinda almost says this but it's not particularly clear that this is NOT a Project Role)
I found this solution buried in stackoverflow responses. THANK YOU Stackoverflow!
In an idealer world I suggest the following Use Cases:
SOLVED! The "Compute Shared VPC Admin" role can only be assigned at the FOLDER or ORG level, not at the Project level. (whine: it'd be nice if that was noted somewhere in IAM or the VPC docs. The Shared VPC doc kinda almost says this but it's not particularly clear that this is NOT a Project Role)
I found this solution buried in stackoverflow responses. THANK YOU Stackoverflow!
In an idealer world I suggest the following Use Cases:
Hello
For assigning the correct IAM role for Host VPC Administrators, use the roles/compute.xpnAdmin role, as it provides necessary permissions for managing Shared VPC configurations. If you can't find this role via the IAM Grant Access form, verify your project settings or manually assign the Compute Shared VPC Admin role. These roles are crucial for managing and configuring Shared VPC in Google Cloud.
Thanks Smit. That's certainly the standard answer that I've seen in many other places. Could you please explain what you mean by "verify your project settings" when the Compute Shared VPC Admin role fails to appear in the IAM Grant form? I'm the Project Owner and IAM Admin. What other permissions do I need to have in order for the Compute... role to appear in the form.
OR could you send a screenshot of the role appearing in the IAM Grant form associated with a Project?
And FWIW I marked ORG/Folder but not Project as a solution because the Compute... role appeared immediately when using IAM Grant for my Folders and Organization but has never appeared for a Project.