Prepare a Snowflake user and role for Mediation
Before using Snowflake with Mediation, create a dedicated Snowflake user and assign a default role with the required privileges.
Create a dedicated user
Create a dedicated Snowflake user for Mediation.
Example:
Required role privileges
The role assigned as DEFAULT_ROLE must have these privileges:
- USAGE on the storage integration created.
- USAGE on the database to be used.
- USAGE on the schema to be used.
- USAGE on the warehouse to be used.
- SELECT on the relevant tables.
- INSERT on the relevant tables.
- IMPORTED PRIVILEGES on the
SNOWFLAKEdatabase.
Generate a key pair for key-pair authentication
If you plan to use key-pair authentication, generate a key pair on your machine and assign the public key to the Snowflake user.
Example:
Update the Snowflake user with the public key.