Skip to main content

Set up dbt Cloud

Configure authentication tokens in dbt Cloud to enable Atlan to fetch and enrich your assets with dbt metadata.

warning

To enable Atlan to fetch metadata for dbt models defined in your project, you must add the dbt docs generate command to the list of commands in the job run steps. This produces a catalog.json file containing all the relevant metadata. Alternatively, you can select the Generate docs on run checkbox to automatically generate updated project docs each time a job runs. Refer to dbt documentation to learn more.

Prerequisites

Before you begin, make sure you have:

  • A dbt Cloud account with access to the projects you want to integrate into Atlan
  • Admin permissions in dbt Cloud (for service account tokens) or Job Viewer access to all projects you want to integrate (for personal access tokens)
  • The dbt docs generate command added to your dbt job run steps, or the Generate docs on run checkbox enabled

Configure authentication

Choose your authentication method and create the necessary tokens for dbt Cloud access.

Service account tokens are recommended for production environments and provide granular access control. Only dbt Cloud administrators can generate service account tokens.

  1. Follow the steps in dbt documentation to generate a service account token.
  2. Configure the following permissions based on your dbt Cloud plan:
    • Team plans: Add Read-only access to all projects you want to integrate into Atlan. This permission is required to authorize requests to both the dbt Cloud Administrative API and dbt Cloud Discovery API.

    • Enterprise plans: Add Job Viewer access to all projects you want to integrate into Atlan. This provides read-only access to your dbt account, project, environment, job, and run metadata. Learn more about dbt Cloud Enterprise permissions.

  3. Copy the generated token. You'll need it when crawling dbt.

Next steps

  • Crawl dbt: Configure and run the crawler to extract metadata from your dbt Cloud or dbt Core projects