Snowflake
-- create a role you can use to grant privileges to Datawisp
CREATE ROLE IF NOT EXISTS datawisp;
-- OPTIONAL: create a dedicated warehouse for Datawisp
-- the settings below are our recommendations, you may tune them to your needs
CREATE OR REPLACE WAREHOUSE datawisp_wh
WAREHOUSE_SIZE = SMALL -- appropriate for small datasets, increase as needed
AUTO_SUSPEND = 120
AUTO_RESUME = TRUE
INITIALLY_SUSPENDED = TRUE
;
-- create a user for Datawisp to log in with
CREATE OR REPLACE USER datawisp
TYPE = SERVICE
DEFAULT_WAREHOUSE = 'DATAWISP_WH' -- change if you skipped the last step
DEFAULT_ROLE = 'DATAWISP'
;
GRANT ROLE datawisp TO USER datawisp;
-- change warehouse name if you're using an existing warehouse
GRANT USAGE ON WAREHOUSE datawisp_wh TO ROLE datawisp;





Last updated

