Set up dbt Cloud
Configure authentication tokens in dbt Cloud to enable Atlan to fetch and enrich your assets with dbt metadata.
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 generatecommand 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 token
- Personal access token
Service account tokens are recommended for production environments and provide granular access control. Only dbt Cloud administrators can generate service account tokens.
- Follow the steps in dbt documentation to generate a service account token.
- 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.
-
- Copy the generated token. You'll need it when crawling dbt.
You can also use an account-scoped personal access token for authentication. This option is suitable if you don't have admin access to create service account tokens.
- Follow the steps in dbt documentation to generate a personal access token.
- Make sure the user creating the token has 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.
- 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