You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/unify/linked-profiles/setup-guides/redshift-setup.md
+6-8Lines changed: 6 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,11 @@ On this page, you'll learn how to connect your Redshift data warehouse to Segmen
10
10
11
11
To get started with Redshift:
12
12
1. Log in to Redshift and select the Redshift cluster you want to connect.
13
-
2. Follow [these instructions](/docs/connections/storage/catalog/redshift/#networking) to configure the correct network and security settings.
13
+
2. Follow [these instructions](/docs/connections/storage/catalog/redshift/#networking) to configure network and security settings.
14
14
15
15
## Create a new role and user
16
16
17
-
Run the SQL commands below to create a role <segment_entities> and user <segment_entities_user>.
17
+
Run the SQL commands below to create a role `(segment_entities)` and user `(segment_entities_user)`.
18
18
19
19
```sql
20
20
-- create role
@@ -38,7 +38,7 @@ You'll need to grant access to schemas and tables that you'd like to enrich with
38
38
39
39
Grant schema permissions based on customer need. Visit Amazon's docs for more on [schema permissions](https://docs.aws.amazon.com/redshift/latest/dg/r_GRANT.html){:target="_blank"} and to view [example commands](https://docs.aws.amazon.com/redshift/latest/dg/r_GRANT-examples.html){:target="_blank"} that you can use to grant permissions.
@@ -47,19 +47,17 @@ GRANT USAGE ON SCHEMA <schema-name> TO ROLE segment_entities;
47
47
48
48
Grant table permissions based on customer need. View descriptions of [table permissions](https://docs.aws.amazon.com/redshift/latest/dg/r_GRANT.html){:target="_blank"} from Amazon.
If you've used RETL in your database, and added a new user, you'll need to add the following table permissions:
57
+
If you've used RETL in your database, and added a new user, you'll need to add the following [table permissions](https://docs.aws.amazon.com/redshift/latest/dg/r_GRANT.html){:target="_blank"}:
Copy file name to clipboardExpand all lines: src/unify/linked-profiles/setup-guides/snowflake-setup.md
+23-28Lines changed: 23 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Be sure to log in with a user that has read and write permissions so that Segmen
11
11
12
12
## Getting started
13
13
14
-
To get started:
14
+
To get started with Snowflake:
15
15
16
16
1. Log in to your Snowflake account.
17
17
2. Navigate to *Worksheets*.
@@ -32,21 +32,21 @@ Enter and run the code below to create a virtual warehouse. Linked Events needs
32
32
AUTO_SUSPEND =600-- 5 minutes
33
33
AUTO_RESUME = TRUE;
34
34
```
35
-
35
+
36
36
## Create a new role
37
37
38
38
Enter and run the code below to create specific roles for Linked Events. All Snowflake access is specified through roles, which are then assigned to the user you’ll create later.
39
39
40
-
```sql
40
+
```ts
41
41
--createrole
42
-
GRANT USAGE ON SCHEMA <schema-name-1> TO ROLE segment_entities;
If you've used RETL in your database, and added a new user, you'll need to add the following table permissions described in [Snowflake's docs](https://docs.snowflake.com/en/user-guide/security-access-control-privileges#table-privileges).
105
+
If Reverse ETL has ever run in your database, a Segment-managed schema is created and a new user is added. You'll need to add the following [table permissions](https://docs.snowflake.com/en/user-guide/security-access-control-privileges#table-privileges) with the command below.
113
106
114
107
```sql
115
108
GRANT USAGE ON SCHEMA __segment_reverse_etl TO ROLE segment_entities;
@@ -121,9 +114,11 @@ GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA __segment_reverse_e
121
114
122
115
### Confirm table permissions
123
116
124
-
To confirm table permissions, run the following command:
117
+
To confirm table permissions:
118
+
1. Log in as the user you've created (`segment_entities_user`).
119
+
2. Verify the role created has the correct permissions with the following command:
0 commit comments