Skip to content

Commit 647cc28

Browse files
committed
some minor cleanup
1 parent fc5e3a0 commit 647cc28

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/unify/data-graph/setup-guides/snowflake-setup.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
22
title: Snowflake Setup
33
plan: unify
4-
beta: true
5-
hidden: true
64
redirect_from:
75
- '/unify/linked-profiles/setup-guides/snowflake-setup'
86
---
@@ -82,7 +80,7 @@ GRANT CREATE SCHEMA ON DATABASE identifier($segment_connection_db) TO ROLE iden
8280

8381
## Step 2: Grant read-only access to additional databases for the Data Graph
8482

85-
Next, give the Segment role **read-only** access to additional databases you want to use for Data Graph including the Profiles Sync database. Repeat the SQL query below for **each** database you want to use for the Data Graph.
83+
Next, give the Segment role **read-only** access to additional databases you want to use for Data Graph including the Profiles Sync database. Repeat the following SQL query for **each** database you want to use for the Data Graph.
8684

8785
``` SQL
8886

@@ -107,7 +105,7 @@ GRANT SELECT ON FUTURE MATERIALIZED VIEWS IN DATABASE identifier($linked_read_on
107105

108106
## (Optional) Step 3: Restrict read-only access to schemas
109107

110-
If you want to restrict access to specific [Snowflake schemas and tables](https://docs.snowflake.com/en/user-guide/security-access-control-privileges#table-privileges), then run the following commands:
108+
If you want to restrict access to specific [Snowflake schemas and tables](https://docs.snowflake.com/en/user-guide/security-access-control-privileges#table-privileges){:target="_blank"}, then run the following commands:
111109

112110
```SQL
113111
-- [Optional] Further restrict access to only specific schemas and tables
@@ -145,19 +143,20 @@ SELECT * FROM identifier($table_name) LIMIT 10;
145143

146144
```
147145
## Step 5: Connect your warehouse to the Data Graph
146+
148147
To connect your warehouse to the Data Graph:
149148

150149
1. Navigate to **Unify > Data Graph**. This should be a Unify space with Profiles Sync already set up.
151-
2. Click Connect warehouse.
150+
2. Click **Connect warehouse**.
152151
3. Select Snowflake as your warehouse type.
153152
4. Enter your warehouse credentials. Segment requires the following settings to connect to your Snowflake warehouse:
154153
- **Account ID**: The Snowflake account ID that uniquely identifies your organization account
155154
- **Database**: The only database that Segment requires write access to in order to create tables for internal bookkeeping. This database is referred to as `segment_connection_db` in the script below
156155
- **Warehouse**: The [warehouse](https://docs.snowflake.com/en/user-guide/warehouses){:target="_blank”} in your Snowflake account that you want to use for Segment to run the SQL queries. This warehouse is referred to as `segment_connection_warehouse` in the script below
157156
- **Username**: The Snowflake user that Segment uses to run SQL in your warehouse. This user is referred to as `segment_connection_username` in the script below
158157
- **Authentication**: There are 2 supported authentication methods:
159-
- **Key Pair**: This is the recommended method of authentication. You would need to first create the user and assign it a key pair following the instructions in the [Snowflake docs](https://docs.snowflake.com/en/user-guide/key-pair-auth). Then, follow the Segment docs above to set up Snowflake permissions and set the `segment_connections_username` variable in the SQL script to the user you just created
160-
- **Password**: The password of the user above. This password is referred to as `segment_connection_password` in the script below
158+
- **Key Pair**: This is the recommended method of authentication. You would need to first create the user and assign it a key pair following the instructions in the [Snowflake docs](https://docs.snowflake.com/en/user-guide/key-pair-auth){:target="_blank"}. Then, follow the Segment docs above to set up Snowflake permissions and set the `segment_connections_username` variable in the SQL script to the user you just created
159+
- **Password**: The password of the user above. This password is referred to as `segment_connection_password` in the script below.
161160

162161
5. Test your connection, then click Save.
163162

@@ -172,4 +171,4 @@ GRANT USAGE ON SCHEMA identifier($retl_schema) TO ROLE identifier($segment_conne
172171
GRANT CREATE TABLE ON SCHEMA identifier($retl_schema) TO ROLE identifier($segment_connection_role);
173172
GRANT SELECT,INSERT,UPDATE,DELETE ON ALL TABLES IN SCHEMA identifier($retl_schema) TO ROLE identifier($segment_connection_role);
174173

175-
```
174+
```

0 commit comments

Comments
 (0)