Sets up your GCP project for Compass data warehouse.
You need the Owner role on the GCP project you are connecting to Compass, and the project must be linked to a billing account.
-
In the Google Cloud console, select your project in the project picker at the top of the page.
-
Open Cloud Shell with the Activate Cloud Shell button (
>_) in the top bar. -
Paste this command:
rm -rf compass-install; \ git clone https://github.com/further-external/compass-install.git && \ bash compass-install/grant_compass_roles.sh
-
Follow instructions in the console.
It takes about 5 minutes. When it finishes you'll see Done. message.
- Enables the Google Cloud APIs Compass uses.
- Creates internal
compass-dataservice account. - Creates the Docker repository in Artifact Registry for the Compass pipeline images.
- Creates the Cloud Storage bucket for the Compass Terraform state.
- Grants IAM roles to the Compass service accounts:
| Service account | What it does | Roles |
|---|---|---|
compass-data@ |
Internal service account. Runs the Compass data pipelines from Artifact Registry. |
|
compass-infrastructure@ |
Creates and maintains the Compass resources in your project. |
|
compass-read@ |
Used by the Compass web app to read the data for dashboards and AI features. |
|
compass-write@ |
Used by the Compass web app to save data to BigQuery and Cloud Storage in your project. |
|