I'm trying to configure DBT to connect to Snowflake database using a private key in Base64-encoded DER format. The documentation mentions this format, but I'm not sure how to create the key or include it in the profiles.yml file.
Could someone provide a clear guide on how to achieve this?
Here's how to use a Base64-encoded DER format your private key in your DBT profiles.yml.
You should have already generated a private key private_key.pem following this documentation: https://docs.snowflake.com/en/user-guide/key-pair-auth#generate-the-private-key
For unencrypted private key:
For encrypted private key:
Copy paste the content of the b64_private_key.der to your dbt profiles.yml:
Do a
dbt debugto verify your connection:You should be able to successfully configure DBT to use a Base64-encoded DER format private key for Snowflake database authentication.