Shared VPC Onboarding Under a Hard Deadline
Your organization has a host project net-host-prod with a Shared VPC already attached to two service projects. A new analytics team needs its own service project analytics-prod to launch 40 Compute Engine VMs into two subnets of the host VPC. The team's engineers are in a Google Group [email protected]. Security requires that the analytics VMs cannot reach the payments subnet, and that the analytics team cannot create or modify subnets in the host project. The team also wants to use their own service account [email protected] on the VMs. The deadline is in three days and the platform team that owns the host project is on leave.
1. What is the correct sequence of IAM grants to let the analytics team launch VMs into the host VPC while honoring the constraints?
Read the worked answer
- On the host project, a host-project admin grants
roles/compute.networkUseron the Shared VPC subnet(s) the analytics VMs may use - not on the host project as a whole. Granting at the subnet level is what enforces "cannot touch the payments subnet." - Also on the host project, grant
roles/container.hostServiceAgentUseronly if GKE is involved (not here). - On the service project
analytics-prod, grantroles/compute.instanceAdmin.v1androles/iam.serviceAccountUseronetl-runner@...to[email protected]so they can create VMs that run as that SA. - Do not grant
roles/compute.networkAdminorroles/compute.securityAdminat the host project - that would violate "cannot create or modify subnets." - The subnet-level
networkUsergrant requires the host-project admin, who is on leave - this is the schedule risk to escalate on day one, not day three.
2. The platform team is unreachable. Can the analytics team self-serve any of these grants, and what is the fastest safe path?
Read the worked answer
No. roles/compute.networkUser on host subnets can only be granted by someone with resourcemanager.projects.setIamPolicy on the host project (or the subnet). Service-project admins cannot grant it to themselves.
Fastest safe path:
- Escalate to whoever holds
roles/ownerorroles/resourcemanager.projectIamAdminonnet-host-prod- often a break-glass admin or org admin, not just the platform team. - Pre-stage everything the analytics team controls (service project creation, SA creation, instance templates) so the moment the subnet grant lands they can deploy.
- Do not work around it by giving the analytics team a broad host-project role "temporarily" - that violates the payments-subnet isolation requirement and is hard to unwind.