Prerequisites
- A Snowflake account.
- A user with at least read access to the target database, schema, and warehouse.
Required fields
Optional fields
Authentication
Password
Enter the Snowflake user’s password. This is the default and requires no extra setup.Snowflake is phasing out single-factor password sign-in for service users. If your user is affected, use key-pair authentication instead.
Key pair
Key-pair authentication signs each connection with an RSA private key instead of sending a password.-
Generate a key pair. Use the second command instead if you want the key encrypted with a passphrase.
-
Extract the public key.
-
Register the public key on the Snowflake user, pasting the contents of
rsa_key.pubwithout theBEGIN/ENDlines. -
In Mora, select Key pair, then paste the full contents of
rsa_key.p8into Private key — including the-----BEGIN PRIVATE KEY-----and-----END PRIVATE KEY-----lines. -
If the key is encrypted (its first line reads
-----BEGIN ENCRYPTED PRIVATE KEY-----), enter the passphrase in Key passphrase.
The key must be in PKCS#8 PEM format. A key that starts with
-----BEGIN RSA PRIVATE KEY----- is PKCS#1 — convert it with openssl pkcs8 -topk8 -inform PEM -in rsa_key.pem -out rsa_key.p8 -nocrypt.Steps
- Open Settings → Datasources → New.
- Enter a name and select Snowflake as the type.
- Fill in the fields above.
- Click Test connection to verify.
- Click Create.
Finding your account identifier
Your account identifier is in the URL you use to access Snowflake. For example, if you log in athttps://xy12345.us-east-1.snowflakecomputing.com, your account identifier is xy12345.us-east-1.
