Skip to main content

Snowflake setup Preview

You can configure the Snowflake adapter by running dbt init in your CLI or manually providing the profiles.yml file with the fields configured for your authentication type.

The Snowflake adapter for Fusion supports the following authentication methods:

  • Password
  • Key pair
  • Single sign-on (SSO)
  • Password with MFA
note

Snowflake is deprecating single-access password login. Individual developers should use MFA or SSO instead of password authentication. Password-based login remains supported for service users (Snowflake user type: LEGACY_SERVICE).

Snowflake configuration details

The information required for configuring the Snowflake adapter can be found conveniently in your Snowflake account menu:

  1. Click on your name from the Snowflake sidebar.
  2. Hover over the Account field.
  3. In the field with your account name, click View account details.
  4. Click Config file and select the appropriate Warehouse and Database.
Sample config file in Snowflake.Sample config file in Snowflake.

Configure Fusion

Executing dbt init in your CLI will prompt for the following fields:

  • Account: Snowflake account number
  • User: Your Snowflake username
  • Database: The database within your Snowflake account to connect to your project
  • Warehouse: The compute warehouse that will handle the tasks for your project
  • Schema: The development/staging/deployment schema for the project
  • Role (Optional): The role dbt should assume when connnecting to the warehouse

Alternatively, you can manually create the profiles.yml file and configure the fields. See examples in authentication section for formatting. If there is an existing profiles.yml file, you are given the option to retain the existing fields or overwrite them.

Next, select your authentication method. Follow the on-screen prompts to provide the required information.

Supported authentication types

Password authentication prompts for your Snowflake account password. This is becoming an increasingly less common option as organizations opt for more secure authentication.

Selecting Password with MFA redirects you to the Snowflake account login to provide your passkey or authenticator password.

Example password configuration

profiles.yml
default:
target: dev
outputs:
dev:
type: snowflake
threads: 16
account: ABC123
user: JANE.SMITH@YOURCOMPANY.COM
database: JAFFLE_SHOP
warehouse: TRANSFORM
schema: JANE_SMITH
password: THISISMYPASSWORD

Example password with MFA configuration

profiles.yml
default:
target: dev
outputs:
dev:
type: snowflake
threads: 16
authenticator: username_password_mfa
account: ABC123
user: JANE.SMITH@YOURCOMPANY.COM
database: JAFFLE_SHOP
warehouse: TRANFORM
schema: JANE_SMITH

More information

Find Snowflake-specific configuration information in the Snowflake adapter reference guide.

Was this page helpful?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

0