Documentation Index
Fetch the complete documentation index at: https://docs.sidecardata.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
You’ll need to create a custom role and service account in GCP. This role and service account must be added to each Project you want Sidecar to ingest metadata for.1. Setting up a role and service account
- GCP Console
- Bash Script
Create a custom role in GCP
- Navigate to
Rolesin theIAM & Adminsection. - Click the
+ Create Rolebutton. - Give the new role a name such as
Sidecar Data BigQuery. - Click
+ Add Permissions, and add the following permissions:
| # | Permission | Reason |
|---|---|---|
| 1 | bigquery.datasets.get | Metadata Ingestion |
| 2 | bigquery.tables.get | Metadata Ingestion |
| 3 | bigquery.tables.getData | Metadata Ingestion |
| 4 | bigquery.tables.list | Metadata Ingestion |
| 5 | resourcemanager.projects.get | Metadata Ingestion |
| 6 | bigquery.jobs.create | Metadata Ingestion |
| 7 | bigquery.jobs.listAll | Metadata Ingestion |
| 8 | bigquery.routines.get | Stored Procedure |
| 9 | bigquery.routines.list | Stored Procedure |
| 10 | bigquery.readsessions.create | Usage & Lineage Workflow |
| 11 | bigquery.readsessions.getData | Usage & Lineage Workflow |
| 12 | logging.operations.list | Incremental Metadata Ingestion |
- Click
Createto create the role. - Repeat the role creation process for each Project you want Sidecar to ingest metadata for.
Create a service account
- Navigate to
Service accountsin theIAM & Adminsection. - Click
+ Create Service Account. - Give the new service account a name like
sidecar-data. - Under “Grant this service account access to project”, select the custom role you created above.
- Click
Done. - For all other Projects you want Sidecar to ingest metadata for:
- Navigate to
IAMin theIAM & Adminsection. - Click
+ Grant Access. - Under “Add principals”, enter the email address generated for the service account.
- Under “Assign roles”, select the custom role you created.
- Click
Save.
- Navigate to
2. Create and download key credentials
- For your primary Project, navigate to
Service accountsin theIAM & Credentialssection. - Find the service account you created for Sidecar, click the 3 dots and click
Manage keys. - Click
Add key, thenCreate new key. - Select JSON as the Key type.
- Click
Create. This will download a JSON file to your machine.
3. Upload your service account key to Sidecar
- In the Onboarding page (or Account Settings), navigate to “Connect your data warehouse” and select “BigQuery”.
- Select the downloaded JSON key file from Step 2.
- Click
TestthenSave.
4. Additional Permissions
- Cloud Resource Manager API and Cloud Asset API must be enabled.
- Add the
Cloud Asset Viewerrole to the Sidecar service account.