Test Key Pair Authentication
These steps are optional, but helpful to ensure your Snowflake JWT connectivity is correctly configured.
Setting Up SnowCLI Connection
Configuring SnowCLI Connection
Add a new connection to Snow CLI that will use the key pair authentication.
NOTE: The Snowflake user that will be added to the connection can have MFA and/or SSO enabled as these options do not conflict with key pair authentication.
Install SnowCLI
Create The Connection
Add a new connection to SnowCLI by running
Provide a name
Enter the account name (format of <region>-<account_name>)
Enter the Snowflake user name
Role for the connection
All other settings are blank until…
Authentication method
Path to private key file
Output Example
The output will look like the following
NOTE: Check your config.toml file, it should look like this
You can also add the connection directly to the config.toml file.
Test Your Connection
In a command line prompt, run the following to test that your connection is set up correctly. (Change your connection name as per what you used above)