Create a dedicated Teleskope user with a default warehouse set.
For each snowflake warehouse and database, grant the Teleskope user read only access.
Teleskope also needs read access to the accounts_usage schemas to determine when a data asset was last used.
userole ACCOUNTADMIN;setrole=teleskope_role;set user =teleskope;setpassword='{password}';createroleifnotexists identifier($role);set warehouse ='{warehouse}';--for each databasesetdatabase='{database}';grant usage on warehouse identifier($warehouse) torole identifier($role);grant usage ondatabase identifier($database) torole identifier($role); grant usage on all schemas indatabase identifier($database) torole identifier($role);grant usage on future schemas indatabase identifier($database) torole identifier($role);grantselecton future tables indatabase identifier($database) torole identifier($role);grantselecton all tables indatabase identifier($database) torole identifier($role); grantselecton future views indatabase identifier($database) torole identifier($role); grantselecton all views indatabase identifier($database) torole identifier($role); createuseridentifier($user) password= $password default_warehouse = $warehouse default_role = $role comment ='Teleskope read only user';grantrole identifier($role) to user identifier($user);
Create read-write user
If enrolling in the dsr funcionality, create a dedicated read/write Teleskope user.
For each snowflake warehouse and database, grant the Teleskope user access.
use role ACCOUNTADMIN;
set role ='teleskope_role';
set user ='teleskope';
set password ='{password}';
create role if not exists identifier($role);
set warehouse ='{warehouse}';
-- for database
set database ='{database}';
grant usage on warehouse identifier($warehouse) to role identifier($role);
grant usage on database identifier($database) to role identifier($role);
grant usage on all schemas in database identifier($database) to role identifier($role);
grant usage on future schemas in database identifier($database) to role identifier($role);
grant select, delete on future tables in database identifier($database) to role identifier($role);
grant select, delete on all tables in database identifier($database) to role identifier($role);
grant select, delete on future views in database identifier($database) to role identifier($role);
grant select, delete on all views in database identifier($database) to role identifier($role);
create user identifier($user)
password = $password
default_warehouse = $warehouse
default_role = $role
comment ='Teleskope read only user';
grant role identifier($role) to user identifier($user);
Enrollment
To enroll your Snowflake instance:
Navigate to settings-> Connector Settings -> Snowflake -> + Enroll New Account
Enter your account information and click Next
Choose your Authentication Type.
Enter your user credentials or keypair and click Enroll