---
schema_version: "1"
id: f15430f731ae37e56e97d2fe07f50f0e409bc0997bdd2b00eaca174f08fc2546
title: Snowflake Private Output Connection
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/analytics/264-0-0/bi_integrate_connectors_output_snowflake_private.md
canonical_url: https://help.salesforce.com/s/articleView?id=analytics.bi_integrate_connectors_output_snowflake_private.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: e4d7c03e4cebea6d0e78d5175445c5a27049e64795c2e7459c47f17148782881
description: Create a remote connection using the Snowflake private output connector to write data from CRM Analytics to a Snowflake table. The private output connector uses a virtual private connection (VPC) for additional security. To use the Snowflake Private Output connector, you configure a network connection, external credential, and named credential. For authentication, use private key or OAuth.
products:
  - CRM Analytics
  - Cross Cloud
release: "264"
---
# Snowflake Private Output Connection

Create a remote connection using the Snowflake private output connector to write data from CRM Analytics to a Snowflake table. The private output connector uses a virtual private connection (VPC) for additional security. To use the Snowflake Private Output connector, you configure a network connection, external credential, and named credential. For authentication, use private key or OAuth.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/images/icon_note.png)

Note Use [Sync Out for Snowflake](https://help.salesforce.com/s/articleView?id=analytics.bi_integrate_connectors_sync_out_snowflake.htm&release=264.0.0&type=5 "Sync Out for Snowflake exports your raw local Salesforce data via CRM Analytics to Snowflake using the CRM Analytics output connector for Snowflake. With Sync Out for Snowflake, keep your Salesforce data in Snowflake up to date using scheduled Data Sync without the need for a third-party ETL tool. Fresh Salesforce data is vital if you maintain a central Snowflake data lake for processing, analysis, business automation, or storage. For example, give your shipping logistics team the freshest data by merging your account data from your system of record, Salesforce, with your ERP’s shipping data in your data lake.") to push raw data from CRM Analytics to Snowflake after setting up the connection. If you want to sync data from Snowflake to CRM Analytics, use the [Snowflake Private Connection](https://help.salesforce.com/s/articleView?id=analytics.bi_integrate_connectors_snowflakevpc.htm&release=264.0.0&type=5 "Pull your data securely from Snowflake into Data Manager using the Virtual Private Connection (VPC) for Snowflake input connector for CRM Analytics. To use the Snowflake VPC connector, you configure an outbound network connection, external credential, and named credential. This connector supports private key or OAuth 2.0 for authentication. Using OAuth 2.0 requires additional setup steps in Snowflake and the Salesforce credentials.") instead.

## How CRM Analytics Output Connectors with Output Nodes Work

CRM Analytics output connectors allow you to write the outcome of a recipe to an external system for further analysis, business automation, and storage. After you configure an output connector to the data source, create a recipe using Data Prep. Add an Output node to the recipe, select the Output connection, and choose the Snowflake table name from the list of objects. When the recipe runs, CRM Analytics writes the output dataset to the selected table. When you run the recipe again, the data previously written is deleted and the new data is written.Generate your Snowflake private key and private key passphrase using the [Snowflake Private Key documentation](https://docs.snowflake.com/en/user-guide/key-pair-auth.html#step-1-generate-the-private-key). If you opt to [rotate your Snowflake private key](https://docs.snowflake.com/en/user-guide/key-pair-auth.html#configuring-key-pair-rotation), manually update the connection properties with the new key.

## Prerequisites

- Requires [Salesforce Private Connect](https://help.salesforce.com/s/articleView?id=xcloud.private_connect_overview.htm&language=en_US). An additional private connect license is required for virtual private connections.
- You must configure your Snowflake for Private Link, to learn how to do this see the Snowflake guide [AWS PrivateLink and Snowflake](https://docs.snowflake.com/en/user-guide/admin-security-privatelink).

For help with configuring this connection so that it’s consistent with your organization’s security requirements, contact your network security or IT department.

## Allowlist the Salesforce AWS Account for Snowflake Private Connect

To verify your AWS account is on the allowlist for Salesforce private connect, see [Verify Salesforce AWS Account for Private Connect](https://help.salesforce.com/s/articleView?id=analytics.bi_integrate_connectors_private_allowlist.htm&release=264.0.0&type=5 "For your Snowflake, Redshift, or S3 private connector to work, verify your AWS account is listed as a Private Connect.").

## Connect to Snowflake with OAuth

To use OAuth 2.0 for your Snowflake private connections, see [Setup OAuth and Provider for Snowflake Private Connection](https://help.salesforce.com/s/articleView?id=analytics.bi_integrate_connectors_private_snowflake_oauth.htm&release=264.0.0&type=5 "To use the CRM Analytics Snowflake private connector with an OAuth connection, you must configure Snowflake, Salesforce, CRM Analytics, an external OAuth authorization server, and an external auth identity provider.").

## Create an Outbound Network Connection

To create an outbound network connection, see [Create the Outbound Network Connection](https://help.salesforce.com/s/articleView?id=analytics.bi_integrate_connectors_private_outbound_connection.htm&release=264.0.0&type=5 "Create a primary outbound network connection to support your Virtual Private Connection (VPC).").

Create another connection for the Snowflake integrated S3 storage. This connection is used when the query returns large amounts of data. Snowflake splits the data into multiple files and stages them in the integrated S3 storage for downloading. For outbound S3 connections, an extra private connect license is required.

1. Find the VPC S3 endpoint service name in the AWS console.
2. Click **Create Outbound Connection**.
3. Select **AWS PrivateLink**, and click **Next**.
4. Give the S3 outbound connection the same name as the primary connection appended with “\_S3”. For example, if the primary connection is named SnowflakeVPCOutbound, name the S3 connection SnowflakeVPCOutbound\_S3.
5. For VPC Endpoint Service Name, enter the endpoint service name you found in the AWS console.
6. For Region, select the AWS region that you’re running Snowflake Private Connect in.
7. Select **Yes, I would like to provision my connection now**.
8. Save the connection.

Make sure that the Connections status is Ready for both connections. If it isn’t, try syncing the connections.

## Create an External Credential

1. From Setup, in the Quick Find box, enter Named, and then select **Named Credentials**.
2. On the External Credentials tab, click **New**.
3. Enter a label and name.
4. For Authentication Protocol, select **No Authentication** if you aren't using OAuth.
    
    ![New external credentials screen showing entered connection name and label, and the no authentication option selected.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/resources-global/analytics/images/bi_integrate_connectors_snowflakevpc_external_credentials.png)
5. If you're using OAuth, select **OAuth 2.0**. Then, select **Browser Flow** for flow type and your external auth identity provider for the Identity Provider.
    
    ![New external credentials screen showing entered connection name and label, and the OAuth 2.0 option selected.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/resources-global/analytics/images/bi_integrate_connectors_snowflakevpc_external_credentials_oauth.png)
6. Save your external credential.
7. Open the new external credential
8. In the Principals section, click **New**.
9. Enter SnowflakeVPCOAuthPrincipalAccess for the parameter name, 1 for the sequence, and **Named Principal** for the identity type.
10. If you are using OAuth 2.0, set the scope. For the scope, enter two values separated by a space. The first scope value is session:role:target role, matching the scope setup done in the Okta setup step. This allows proper access to the data based on the role. The second scope value is offline\_access, allowing the refresh token returned from Okta.
    
    ![New principal screen showing entered parameter name, sequence, named principal identity type, and scope.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/resources-global/analytics/images/bi_integrate_connectors_snowflakevpc_oauth_principal.png)
11. Save the principal. Find the action menu for the principal and **Authenticate**
    
    ![The Authenicate action for the principal.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/resources-global/analytics/images/bi_integrate_connectors_snowflakevpc_oauth_principal_auth_action.png)
    
    This opens a browser window to login for Okta. When authentication is successful, the browser redirects to Salesforce and the Authentication Status updates to Configured. If the status isn't updated, review the principal scope settings and the Okta setup.

Now update your user profile with external credential principal access.

1. From Setup, in the Quick Find box, enter Profiles, and then select **Profiles**.
2. Select the profile for the **Analytics Cloud Integration User**.
3. Click **Enabled External Credential Principal Access** at the top of the profile page.
4. Click **Edit** and add **SnowflakeVPCOAuthExtCred - SnowflakeVPCOAuthPrincipalAccess**.
5. Click **Save**.

## Create a Named Credential

1. From Snowflake, determine your Snowflake account name from the Account URL field of [SYSTEM$GET\_PRIVATELINK\_CONFIG](https://docs.snowflake.com/en/sql-reference/functions/system_get_privatelink_config).
2. From Setup, in the Quick Find box, enter Named, and then select **Named Credential**.
3. On the Named Credentials tab, click **New**.
4. Enter a label and name.
5. For URL, enter https://<your Snowflake account name>.<your AWS region>.privatelink.snowflakecomputing.com.
6. Select the external credential and outbound network connection that you created.
    
    ![New Named Credentials screen showing entered connection name and label, URL, and external credentials and outbound network connection values selected.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/resources-global/analytics/images/bi_integrate_connectors_snowflakevpc_named_credentials.png)
7. Save your named credential.

## Enable and Add the Snowflake Private Output Connector

1. In the Data Manager, click the **Connections** tab.
2. Click **New Connection**.
3. Click **Private**, select **Snowflake Private Connector (Output)** then click **Next**.
4. Enter the connection settings, as described in the Connection Settings section.
5. Click **Save & Test**. Save & Test validates your settings by attempting to connect to the source. If the connection fails, CRM Analytics shows possible reasons.

All settings require a value, unless otherwise indicated.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d16612e440">Connection Setting</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d16612e443">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Connection Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d16612e440 ">Connection Name</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d16612e443 ">Required. Identifies the connection. Use a convention that lets you easily distinguish
              between different connections.</td>

          </tr>
          <tr class="">
            <td data-label="Connection Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d16612e440 ">Developer Name</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d16612e443 ">Required. The API name for the connection. This name can’t include spaces. You can’t change
              the developer name after you create the connection.</td>

          </tr>
          <tr class="">
            <td data-label="Connection Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d16612e440 ">Description</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d16612e443 ">Required. The description for the connection</td>

          </tr>
          <tr class="">
            <td data-label="Connection Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d16612e440 ">Authentication Type</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d16612e443 ">
              <p>Required. The authentication type. Valid values include
                <code>OAuth</code>, <code>Password</code>, or <code>PrivateKey</code>.
                <code>PrivateKey</code> is recommended as the most secure option.
              </p>
              <ul>
                <li>If you use <code>OAuth</code>, enter a value in the <strong class="uicontrol">Named Credential</strong>
                  field.</li>

                <li>If you use <code>Password</code>, enter a value in the <strong class="uicontrol">Username</strong> and
                  <strong class="uicontrol">Password</strong> fields.
                </li>

                <li>If you use <code>PrivateKey</code>, enter a value in the <strong class="uicontrol">Username</strong>, <strong class="uicontrol">Private
                    Key</strong>, and <strong class="uicontrol">Private Key Passphrase</strong> fields</li>

              </ul>
            </td>

          </tr>
          <tr class="">
            <td data-label="Connection Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d16612e440 ">Named Credential</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d16612e443 ">Required. The <strong>Name</strong> field from a named credential stored in your Salesforce org.</td>

          </tr>
          <tr class="">
            <td data-label="Connection Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d16612e440 ">Username</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d16612e443 ">Required for password and private key authentication. The user name for the Snowflake account.</td>

          </tr>
          <tr class="">
            <td data-label="Connection Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d16612e440 ">Private Key</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d16612e443 ">
              <p>Required for private key authentication*. A private key associated with your Snowflake
                account.
              </p>
              <div class="slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium">
                <div class="slds-media slds-media_responsive">
                  <div class="slds-media__figure"><span class="slds-icon_container slds-icon_container_circle slds-icon-note-note"><img style="margin-bottom:0;" src="https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/images/icon_note.png" alt="Note"></span></div>
                  <div class="slds-media__body" style="padding-top:.5rem;padding-bottom:.5rem;"><span class="slds-text-title_caps">Note</span> You must use an encrypted private key and password generated with the Advanced Encryption
                    Standard (AES). For the detailed steps, refer to <a href="https://docs.snowflake.com/en/user-guide/key-pair-auth" target="_blank">Key-pair authentication and key-pair rotation</a> in Snowflake Help. When using
                    the <code>openssl</code> command to generate the encrypted key, be sure to replace <code>des3</code> with
                    <code>aes256</code> to ensure advanced encryption is used.
                  </div>
                </div>
              </div>
            </td>

          </tr>
          <tr class="">
            <td data-label="Connection Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d16612e440 ">Private Key Passphrase</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d16612e443 ">Required for private key authentication*. The passphrase associated with your specified private
              key.</td>

          </tr>
          <tr class="">
            <td data-label="Connection Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d16612e440 ">Warehouse</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d16612e443 ">Required. The Snowflake warehouse name. This setting is case-sensitive, so enter the value
              exactly as it appears in Snowflake.</td>

          </tr>
          <tr class="">
            <td data-label="Connection Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d16612e440 ">Role</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d16612e443 ">Optional. The Snowflake role assigned to the user that you’re using to
              connect.</td>

          </tr>
          <tr class="">
            <td data-label="Connection Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d16612e440 ">Database</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d16612e443 ">Required. The Snowflake database name. This setting is case-sensitive, so enter the value
              exactly as it appears in Snowflake.</td>

          </tr>
          <tr class="">
            <td data-label="Connection Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d16612e440 ">Schema</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d16612e443 ">Required. Snowflake schema name. This setting is case-sensitive, so enter the value
              exactly as it appears in Snowflake.</td>

          </tr>
        </tbody>
      </table>

\*Enter the Password or both the Private Key and Private Key Passphrase. Learn more about private keys in the [Snowflake Private Key documentation](https://docs.snowflake.com/en/user-guide/key-pair-auth.html).

## Push Data to Snowflake

With the Snowflake Output Connector configured, you have two options to push data to Snowflake from CRM Analytics. To push augmented and transformed data, build a Data Prep recipe that merges and transforms the data to push to Snowflake. Add an output node and configure it to use the Snowflake Output connector.

1. Select to write to an **Output Connection**.
2. Select the connection name of the Snowflake Output connection you created.
3. Select **Apply**.
4. Save the recipe.

To push raw data, without augmentation or transformation, use [Sync Out for Snowflake](https://help.salesforce.com/s/articleView?id=analytics.bi_integrate_connectors_output_snowflake.htm&release=264.0.0&type=5 "Create a remote connection using the Snowflake output connector to write data from CRM Analytics to a Snowflake table. Then, use Sync Out to push raw data from CRM Analytics to Snowflake, or a Data Prep recipe output node to push transformed data."). Data is pushed with each Data Sync run. You don’t use a Data Prep recipe. Keep these behaviors in mind when working with the Snowflake output connector and using a Data Prep recipe output node.

- You can use an output connection more than once per recipe, but each output node must use a different object. The connector's per-run limit applies to each output node, and each output node is subject to the rolling 24-hour limit. To push again from the same recipe, add another connection with the same credentials
- Output connections are only available for recipes built with Data Prep.
- When the prior run’s data is deleted in preparation for the current run, the earlier version of an output dataset is inaccessible. Set up a process to copy or use the output after each run.