> ## Documentation Index
> Fetch the complete documentation index at: https://docs.prod.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Snowflake Warehouse

Snowflake is a cloud-based data platform that combines the power of a data warehouse with the flexibility of a cloud solution, enabling organizations to store, analyze, and share large volumes of data seamlessly. Using the Prod AI integration with Snowflake, teams can effortlessly build custom internal tools that leverage real-time data, streamlining workflows and enhancing operational efficiency across the organization.

## Setting up Snowflake

On Dedicated Cloud, allowlist your [Prod AI data plane IP addresses](https://docs.prod.ai/deployment/security/overview.md#ip-addresses) to connect to your database.
Learn how to configure this in Snowflake's guide on&#x20;
[Controlling network traffic with network policies](https://docs.snowflake.com/en/user-guide/network-policies).
Alternatively, use Managed BYOC to keep your data within your own AWS account.

### 1. Add integration

Select **Snowflake Warehouse** from the&#x20;
**integrations page**.

### 2. Configure settings

Fill out the form with the following settings based on your authentication method:

> [tab] Password-based authentication
>
> | Field | Required | Description |
> | - | - | - |
> | Account identifier | ✓ | Snowflake [account identifier](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#account-identifiers). The account identifier **does not** include the `snowflakecomputing.com` suffix |
> | Username | ✓ | Login name for the user |
> | Password | ✓ | Password for the user |
> | Database | ✓ | Name of the database to use |
> | Default warehouse | ✗ | Name of the warehouse to use. Defaults to the user's default warehouse |
> | Default schema | ✗ | Name of the schema to use for the database. Defaults to **public** |
> | Default role | ✗ | Name of the role to use. Defaults to the user's default role |

> [tab] Native SSO
>
> | Field | Required | Description |
> | - | - | - |
> | Account identifier | ✓ | Snowflake [account identifier](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#account-identifiers). The account identifier **does not** include the `snowflakecomputing.com` suffix |
> | Username | ✓ | User name of Okta user |
> | Password | ✓ | Password of Okta user |
> | Authenticator URL | ✓ | The URL endpoint for your Okta account (e.g. `https://<okta_account_name>.okta.com`) |
> | Database | ✓ | Name of the database to use |
> | Default warehouse | ✗ | Name of the warehouse to use. Defaults to the user's default warehouse |
> | Default schema | ✗ | Name of the schema to use for the database. Defaults to **public** |
> | Default role | ✗ | Name of the role to use. Defaults to the user's default role |
>
> For more information, see Snowflake's docs on [Native SSO](https://docs.snowflake.com/en/user-guide/admin-security-fed-auth-use#native-sso-okta-only)

> [tab] Key-pair authentication
>
> | Field | Required | Description |
> | - | - | - |
> | Account identifier | ✓ | Snowflake [account identifier](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#account-identifiers). The account identifier **does not** include the `snowflakecomputing.com` suffix |
> | Username | ✓ | Login name for the user |
> | Private key | ✓ | The private key used for authentication. For more information, see [Using key-pair authentication and key-pair rotation](https://docs.snowflake.com/en/developer-guide/python-connector/python-connector-connect.html#label-python-key-pair-authn-rotation). |
> | Passphrase | ✗ | The passphrase used to decrypt the private key for the specified user. See [Using key-pair authentication and key-pair rotation](https://docs.snowflake.com/en/developer-guide/python-connector/python-connector-connect.html#label-python-key-pair-authn-rotation). |
> | Database | ✓ | Name of the database to use |
> | Default warehouse | ✗ | Name of the warehouse to use. Defaults to the user's default warehouse |
> | Default schema | ✗ | Name of the schema to use for the database. Defaults to **public** |
> | Default role | ✗ | Name of the role to use. Defaults to the user's default role |
>
> For more information, see Snowflake's docs on [Key-pair authentication](https://docs.snowflake.com/en/user-guide/key-pair-auth)

> [tab] External OAuth
>
> | Field | Required | Description |
> | - | - | - |
> | Account identifier | ✓ | Snowflake [account identifier](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#account-identifiers). The account identifier **does not** include the `snowflakecomputing.com` suffix |
> | Subject token source | ✓ | |
> | Token URL | ✓ | The token endpoint of the authorization server, used to exchange an authorization code for an access token |
> | Client ID | ✓ | The ID issues to your OAuth client during registration |
> | Client secret | ✓ | The secret issued to your OAuth client during registration |
> | Audience | ✓ | Snowflake [account url](https://docs.snowflake.com/en/user-guide/admin-account-identifier#finding-the-organization-and-account-name-for-an-account) |
> | Scopes | ✓ | `session:role-any` |
> | Database | ✓ | Name of the database to use |
> | Default warehouse | ✗ | Name of the warehouse to use. Defaults to the user's default warehouse |
> | Default schema | ✗ | Name of the schema to use for the database. Defaults to **public** |
> | Default role | ✗ | Name of the role to use. Defaults to the user's default role |
>
> For more information:
>
> * See Snowflake's docs on [External Auth](https://docs.snowflake.com/en/user-guide/oauth-ext-overview)
> * Check out our tutorial on [Snowflake External OAuth with Okta as your IdP](https://docs.prod.ai/integrations/auth/guides/snowflake-external-oauth-with-okta.md)

### 3. Test and save

Click **Test Connection** to check that Prod AI can connect to the data source.

After connecting successfully, click **Create** to save the integration.

### 4. Set data tags

Optionally, configure different data tags for [separate development environments](https://docs.prod.ai/development-lifecycle/build/data-tags.md).

**Snowflake connected!**
You can now build
[apps](https://docs.prod.ai/coding-agents/apps.md) and [agents](https://docs.prod.ai/coding-agents/agents.md) with Snowflake.

## Troubleshooting

If you run into issues, see [Troubleshooting Database Integrations](https://docs.prod.ai/integrations/troubleshooting/troubleshooting-databases.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.