Connecting to GCP

Step-by-step guide to connect a Google Cloud Project to a Bluebricks collection using workload identity federation

Prerequisites

circle-info

Bluebricks uses workload identity federation to connect to GCP: no static service account keys are required. Bluebricks creates a dedicated service account per project and authenticates through Google's identity federation.

Step 1: Connect GCP in Bluebricks

Using the app

  1. Click "Connect Cloud" on the collection you want to link to GCP

  2. Select GCP as the Cloud Provider

  3. Choose an existing Project ID or click "New Project"

  4. If creating a New Project, enter the Google Cloud Project ID

  5. Click "Connect & Create" to complete the setup

Using the API

Use the Cloud Accounts APIarrow-up-right to create a cloud account. Pass the Google Cloud Project ID as accountId.

Step 2: Grant Service Account Permissions

circle-exclamation
circle-info

Bluebricks also recommends assigning the Editor role to the Service Account for the project to ensure it has the required permissions to manage resources effectively.

  1. App only: Choose Edit on the collection options

  2. Copy Bluebricks Service Account (It is in the API output if the API was used to connect GCP)

  3. Click the "Search (/) for resources, docs, products and more" field, type "IAM" and click it

  4. Click "Grant access"

  5. Click the "New principals" field

  6. Paste or type the Service Account Email created by Bluebricks

  7. Under "Assign roles", choose "Select a role"

  8. Click "Editor"

  9. Click "Save"

Next steps

Last updated

Was this helpful?