Skip to content

Commit 23d3655

Browse files
Apply suggestions from code review
Co-authored-by: forstisabella <[email protected]>
1 parent a7d9c40 commit 23d3655

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/unify/linked-profiles/setup-guides/snowflake-setup.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ beta: true
1010

1111
On this page, you'll learn how to connect your Snowflake data warehouse to Segment.
1212

13-
Within Snowflake, log in with a user that has admin priveleges to provide Segment Linked Profiles with the necessary permissions below.
13+
Log in to Snowflake with a user that has admin privileges to provide Segment Linked Profiles with the necessary permissions below.
1414

1515
> info ""
1616
> Both Linked Events and Linked Profiles support Snowflake.
@@ -24,8 +24,8 @@ Segment requires the following settings to connect to your Snowflake warehouse.
2424

2525
- **Account ID**: The Snowflake account ID that uniquely identifies your organization account.
2626
- **Database Name**: 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.
27-
- **Warehouse**: The warehouse in your Snowflake account that you wish to use for Segment to run the SQL queries. This warehouse is referred to as `segment_connection_warehouse` in the script below.
28-
- **Username**: The Snowflake user that will be used by Segment to run SQL in your warehouse. This user is referred to as `segment_connection_username` in the script below.
27+
- **Warehouse**: The warehouse 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.
28+
- **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.
2929
- **Password**: The password of the user above. This password is referred to as `segment_connection_password` in the script below.
3030

3131
## Set up Snowflake credentials
@@ -83,7 +83,7 @@ GRANT USAGE ON WAREHOUSE identifier($segment_connection_warehouse) TO ROLE ident
8383
-- Grant role to the user
8484
GRANT ROLE identifier($segment_connection_role) TO USER identifier($segment_connection_username);
8585

86-
-- Create and Grant access to Segment internal DB used for bookkeeping. This is the only DB that Segment requires write access to. This is also the DB you will use in the "Database Name" config while setting up the connection in the Segment app.
86+
-- Create and Grant access to a Segment internal DB used for bookkeeping. This is the only DB that Segment requires write access to. This is also the DB you will use in the "Database Name" config while setting up the connection in the Segment app.
8787
CREATE DATABASE IF NOT EXISTS identifier($segment_connection_db);
8888
GRANT USAGE ON DATABASE identifier($segment_connection_db) TO ROLE identifier($segment_connection_role);
8989
GRANT USAGE ON ALL SCHEMAS IN DATABASE identifier($segment_connection_db) TO ROLE identifier($segment_connection_role);
@@ -117,7 +117,7 @@ GRANT SELECT ON FUTURE MATERIALIZED VIEWS IN DATABASE identifier($linked_read_on
117117

118118
### (Optional) Snowflake schema access
119119

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

122122
```ts
123123
-- [Optional] Further restrict access to only specific schemas and tables
@@ -139,7 +139,7 @@ GRANT SELECT ON FUTURE TABLES IN SCHEMA identifier($schema) TO ROLE identifier($
139139
```
140140

141141
### (If applicable) Add Snowflake table permissions
142-
Run the following SQL if you run into an error on the Segment app indicating that the user doesn't have sufficient priveleges on an existing `_segment_reverse_etl` schema.
142+
Run the following SQL if you run into an error on the Segment app indicating that the user doesn't have sufficient privileges on an existing `_segment_reverse_etl` schema.
143143

144144
If Segment Reverse ETL has ever run in the database you are configuring as the Segment connection database, a Segment-managed schema is already created and you need to provide the new Segment user access to the existing schema.
145145

@@ -164,7 +164,7 @@ GRANT SELECT,INSERT,UPDATE,DELETE ON ALL TABLES IN SCHEMA identifier($retl_schem
164164

165165
### Confirm permissions
166166

167-
To verify you have set up the right permissions for a specific table, log in with the username and password you created for `SEGMENT_CONNECTION_USERNAME` and run the following command to verify the role you created has the correct permissions. This command should succeed and you should be able to view the respective table.
167+
To verify you have set up the right permissions for a specific table, log in with the username and password you created for `SEGMENT_CONNECTION_USERNAME` and run the following command to verify the role you created has the correct permissions. If this command succeeds, you should be able to view the respective table.
168168

169169
```ts
170170
set segment_connection_role='SEGMENT_LINKED_ROLE';

0 commit comments

Comments
 (0)