Enabling Shared VPC on the host project

The administrator of the host project enables Shared VPC on the host project and attaches the service project once, before Cloudera Cloud Factory provisions clusters on the Shared VPC network.

Access to the host project is usually owned by a different team than the team that owns the service project. If you do not administer the host project, send these steps to the administrator of the host project.

  • Ensure that you have the Shared VPC Admin role, roles/compute.xpnAdmin, on the host project or its folder or organization.
  • Ensure that the Google Cloud CLI, gcloud, is installed and authenticated.
  1. Set the IDs of the host project and the service project:
    export HOST_PROJECT_ID="[***HOST PROJECT ID***]"
    export SERVICE_PROJECT_ID="[***SERVICE PROJECT ID***]"
  2. Enable Shared VPC on the host project:
    gcloud compute shared-vpc enable "$HOST_PROJECT_ID"
  3. Attach the service project to the host project:
    gcloud compute shared-vpc associated-projects add "$SERVICE_PROJECT_ID" \
      --host-project="$HOST_PROJECT_ID"

The service project is attached to the host project and can use the Shared VPC network.

Grant the Cloudera Cloud Factory service account access to the host project.