Skip to content

Commit 2080c4c

Browse files
committed
dbt sync first pass
1 parent 4ef3138 commit 2080c4c

File tree

1 file changed

+50
-1
lines changed
  • src/segment-app/extensions

1 file changed

+50
-1
lines changed

src/segment-app/extensions/dbt.md

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,52 @@
11
---
22
title: dbt Integration
3-
---
3+
---
4+
5+
Segment's dbt integration lets you use [Reverse ETL](/docs/connections/reverse-etl/) with your existing dbt labs models and syncs to help centralize model management and versioning, reduce redundancies, and run CI checks to prevent breaking changes.
6+
7+
With Segment's dbt integration, you can:
8+
9+
- Securely connect Segment to the GitHub repository that stores your dbt models.
10+
- Use centralized dbt models to set up Reverse ETL.
11+
- Trigger Reverse ETL syncs from dbt jobs.
12+
13+
<!-- This page explains... -->
14+
15+
> info ""
16+
> Extensions, including Segment's dbt integration, is currently in public beta and is governed by Segment's [First Access and Beta Preview Terms](https://www.twilio.com/en-us/legal/tos){:target="_blank"}.
17+
18+
## Before you begin
19+
20+
Keep the following in mind as you set up the dbt integration:
21+
22+
- The integration supports [dbt Core v1.7](https://docs.getdbt.com/docs/dbt-versions/core-upgrade/upgrading-to-v1.7){:target="_blank"}.
23+
- You can use Snowflake, Databricks, RedShift, Postgres, and BigQuery as Reverse ETL sources.
24+
- dbt models aren't synchronized from the dbt cloud. The model sync connects to a Git repository that loads models into Segment for use with Reverse ETL.
25+
26+
## Set up Git dbt Models and dbt Cloud
27+
28+
To set up the dbt integration, you'll need:
29+
30+
- an existing dbt account with a Git repository
31+
- (for job syncs:) dbt cloud with jobs already created
32+
33+
### Git repository and dbt Models setup
34+
35+
Follow these steps to connect the Git repository that stores your dbt Models:
36+
37+
1. In your Segment Workspace, go to **Settings > Extensions**.
38+
2. Click **Set up Git sync**.
39+
3. On the **Configure service credentials** page, select a service and protocol, add your SSH private key, then click **Next**.
40+
4. In the **Connect source** window, select a Reverse ETL warehouse source from the dropdown, then click **Save**.
41+
42+
After you've saved your setup, you can configure your Git repository's settings to your needs by changing the selecting the repository, branch, dbt version, default schema, and project path.
43+
44+
### dbt Cloud setup
45+
46+
You can also use dbt Cloud to schedule Reverse ETL syncs after a dbt Cloud job successfully runs.
47+
48+
To set up dbt Cloud:
49+
50+
1. In your Segment Workspace, go to **Settings > Extensions**.
51+
2. Click **Manage dbt CLoud**.
52+
3. Add your dbt Cloud API key, and, optionally, a custom subdomain. Click **Save**.

0 commit comments

Comments
 (0)