Snowflake
Integrate via Direct Connect
Steps
- Create a role, name it
KUBIT
.CREATE ROLE KUBIT;
- Create a user and name it
KUBIT
.
Kubit team will generate and share a password, which you should use to create the user.CREATE USER KUBIT PASSWORD='*****' DEFAULT_ROLE
- Share your Snowflake account locator with the Kubit team.
- Create a database called
KUBIT
.CREATE DATABASE KUBIT;
- Make the
KUBIT
role owner of theKUBIT
database. This will allow us to create and execute tasks that are only available to an owner role.GRANT OWNERSHIP ON DATABASE KUBIT TO ROLE KUBIT;
- Create a Data Warehouse called
KUBIT
(size depends on your data volume)- Grant the
KUBIT
role the following privileges:MONITOR | USAGE | OPERATE
CREATE OR REPLACE WAREHOUSE KUBIT WAREHOUSE_SIZE=... INITIALLY_SUSPENDED=TRUE; GRANT MONITOR ON WAREHOUSE KUBIT TO ROLE KUBIT; GRANT USAGE ON WAREHOUSE KUBIT TO ROLE KUBIT; GRANT OPERATE ON WAREHOUSE KUBIT TO ROLE KUBIT;
- Grant the
- Add read-only (SELECT) permissions to the
KUBIT
role to your intended data tables/views.
Best Practice
Create one more user, role and warehouse for development purposes in order to isolate the impact on the production environment and avoid accidents.
Updated 7 months ago