Skip to content

Commit 8cc5945

Browse files
authored
Merge pull request #4393 from segmentio/DOC-671
Redshift Reverse ETL setup
2 parents 9036a8b + 656e163 commit 8cc5945

File tree

5 files changed

+35
-5
lines changed

5 files changed

+35
-5
lines changed

src/_data/sidenav/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ sections:
249249
title: Reverse ETL Overview
250250
- path: /reverse-etl/bigquery-setup
251251
title: BigQuery Reverse ETL Setup
252+
- path: /reverse-etl/redshift-setup
253+
title: Redshift Reverse ETL Setup
252254
- path: /reverse-etl/snowflake-setup
253255
title: Snowflake Reverse ETL Setup
254256
- section_title: Profiles

src/reverse-etl/bigquery-setup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: BigQuery Reverse ETL Setup
33
---
44

5-
Set up BigQuery as your Reverse ETL source. You can also choose to [set up Snowflake](/docs/reverse-etl/snowflake-setup/) as your source.
5+
Set up BigQuery as your Reverse ETL source.
66

77
> warning ""
88
> You need to be an account admin to set up the Segment BigQuery connector as well as write permissions for the `__segment_reverse_etl` dataset.
@@ -26,7 +26,7 @@ To set up the Segment BigQuery connector:
2626
20. Click **Test Connection** to test to see if the connection works. If the connection fails, make sure you have the right permissions and credentials and try again.
2727
6. Click **Create Source** if the test connection is successful.
2828

29-
Once you've added BigQuery as a source, you can [add a model](/docs/reverse-etl/#step-2-add-a-model).
29+
Once you've added BigQuery as a source, you can [add a model](/docs/reverse-etl#step-2-add-a-model).
3030

3131
## Constructing your own role or policy
3232
When you construct your own role or policy, Segment needs the following permissions:

src/reverse-etl/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ To add your warehouse as a source:
4545
4646
1. Navigate to **Reverse ETL** in the Segment app.
4747
2. Click **Add Source**.
48-
3. Select the source you want to add. You can choose between **BigQuery** and **Snowflake**.
48+
3. Select the source you want to add. You can choose between **BigQuery**, **Snowflake**, and **Redshift**.
4949
* If you choose to use Snowflake, run the queries listed in the [Snowflake Reverse ETL setup guide](/docs/reverse-etl/snowflake-setup/) to set up the Segment Snowflake connector. Segment recommends using the `ACCOUNTADMIN` role to execute all the commands.
5050
* If you choose to use BigQuery, use the permissions outlined in the [BigQuery Reverse ETL setup guide](/docs/reverse-etl/bigquery-setup/), to create a Service Account and generate JSON credentials that will then be copied into the Segment UI when creating a Reverse ETL Source.
5151
4. Add the account information for your source.

src/reverse-etl/redshift-setup.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: Redshift Reverse ETL Setup
3+
beta: true
4+
---
5+
6+
Set up Redshift as your Reverse ETL source.
7+
8+
> info ""
9+
> Redshift for Reverse ETL is in beta and Segment’s [First-Access and Beta terms](https://segment.com/legal/first-access-beta-preview/) govern this feature. If you’d like to learn more, reach out to your CSM, AE, or SE.
10+
11+
To set up Redshift with Reverse ETL:
12+
1. Log in to Redshift and select the Redshift cluster you want to connect with Reverse ETL.
13+
2. Follow the [networking instructions](/docs/connections/storage/catalog/redshift/#networking) to configure the correct network and security settings.
14+
3. Run the SQL commands below to create a user named `segment`.
15+
16+
```sql
17+
-- create a user named "segment" that Segment will use when connecting to your Redshift cluster.
18+
CREATE USER segment PASSWORD '<enter password here>';
19+
20+
-- allows the "segment" user to create new schemas on the specified database. (this is the name you chose when provisioning your cluster)
21+
GRANT CREATE ON DATABASE "<enter database name here>" TO "segment";
22+
```
23+
4. Follow the steps listed in the [Add a source](/docs/reverse-etl#step-1-add-a-source) section to finish adding Redshift as your source.
24+
25+
### Extra Permissions
26+
Give the `segment` user read permissions for any resources (databases, schemas, tables) the query needs to access.
27+
28+
Give the `segment` user write permissions for the Segment managed schema (`__segment_reverse_etl`), which keeps track of changes to the query results.

src/reverse-etl/snowflake-setup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Snowflake Reverse ETL Setup
33
beta: true
44
---
55

6-
Set up Snowflake as your Reverse ETL source. You can also choose to [set up BigQuery](/docs/reverse-etl/bigquery-setup/) as your source.
6+
Set up Snowflake as your Reverse ETL source.
77

88
At a high level, when you set up Snowflake for Reverse ETL, the configured user/role needs read permissions for any resources (databases, schemas, tables) the query needs to access. Segment keeps track of changes to your query results with a managed schema (`__SEGMENT_REVERSE_ETL`), which requires the configured user to allow write permissions for that schema.
99

@@ -57,4 +57,4 @@ Follow the instructions below to set up the Segment Snowflake connector. Segment
5757
-- role access
5858
GRANT ROLE segment_reverse_etl TO USER segment_reverse_etl_user;
5959
```
60-
7. Follow the steps listed in the [Add a Source](/docs/reverse-etl/#step-1-add-a-source) section to finish adding Snowflake as a source.
60+
7. Follow the steps listed in the [Add a Source](/docs/reverse-etl#step-1-add-a-source) section to finish adding Snowflake as a source.

0 commit comments

Comments
 (0)