Skip to main content

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

Create a custom role in GCP

  1. Navigate to Roles in the IAM & Admin section.
  2. Click the + Create Role button.
  3. Give the new role a name such as Sidecar Data BigQuery.
  4. Click + Add Permissions, and add the following permissions:
#PermissionReason
1bigquery.datasets.getMetadata Ingestion
2bigquery.tables.getMetadata Ingestion
3bigquery.tables.getDataMetadata Ingestion
4bigquery.tables.listMetadata Ingestion
5resourcemanager.projects.getMetadata Ingestion
6bigquery.jobs.createMetadata Ingestion
7bigquery.jobs.listAllMetadata Ingestion
8bigquery.routines.getStored Procedure
9bigquery.routines.listStored Procedure
10bigquery.readsessions.createUsage & Lineage Workflow
11bigquery.readsessions.getDataUsage & Lineage Workflow
12logging.operations.listIncremental Metadata Ingestion
  1. Click Create to create the role.
  2. Repeat the role creation process for each Project you want Sidecar to ingest metadata for.

Create a service account

  1. Navigate to Service accounts in the IAM & Admin section.
  2. Click + Create Service Account.
  3. Give the new service account a name like sidecar-data.
  4. Under “Grant this service account access to project”, select the custom role you created above.
  5. Click Done.
  6. For all other Projects you want Sidecar to ingest metadata for:
    1. Navigate to IAM in the IAM & Admin section.
    2. Click + Grant Access.
    3. Under “Add principals”, enter the email address generated for the service account.
    4. Under “Assign roles”, select the custom role you created.
    5. Click Save.

2. Create and download key credentials

  1. For your primary Project, navigate to Service accounts in the IAM & Credentials section.
  2. Find the service account you created for Sidecar, click the 3 dots and click Manage keys.
  3. Click Add key, then Create new key.
  4. Select JSON as the Key type.
  5. Click Create. This will download a JSON file to your machine.

3. Upload your service account key to Sidecar

  1. In the Onboarding page (or Account Settings), navigate to “Connect your data warehouse” and select “BigQuery”.
  2. Select the downloaded JSON key file from Step 2.
  3. Click Test then Save.

4. Additional Permissions

  • Cloud Resource Manager API and Cloud Asset API must be enabled.
  • Add the Cloud Asset Viewer role to the Sidecar service account.