Egress Private Service Connect Endpoint Setup: Snowflake on Google Cloud for Confluent Cloud

This topic presents the steps for configuring the Snowflake Sink connector in Confluent Cloud using Egress Private Service Connect on Google Cloud.

For details, see Google Cloud Private Service Connect and Snowflake.

Prerequisites

The following are the prerequisites for configuring the Snowflake Sink connector with an Egress Private Service Connect:

  • A Confluent Cloud Dedicated cluster was set up and is running with Google Cloud Private Service Connect.
  • A Snowflake instance was created to sink data into and is running within the same region and Google Cloud as the Confluent Cloud cluster.
  • A database and a schema were created in Snowflake to sink data into.

Note

For added security, you can set up a Network rule within Snowflake to restrict incoming traffic to the specific VPC Endpoint set up as part of Egress Private Service Connect Endpoints.

Step 1. Enable Private Service Connect on the Snowflake account and allow Confluent Cloud Project ID

  1. Obtain the Confluent Cloud Project ID.

    1. In the Confluent Cloud Console, go to EnvironmentNetwork, and select the associated Private Service Connect network you want to use.

    2. Click + Create endpoint in the Egress connections tab.

    3. Click the service you want to connect to, specifically, Snowflake.

    4. Make a note of Confluent’s Google Cloud Account ID associated with the Private Service Connect Endpoint.

      ../../_images/gcp-project-id1.png
  2. Open a support case with Snowflake and request enablement of Private Service Connect and request Confluent Cloud Project ID to be allowed.

Step 3. Create an Egress Private Service Connect Endpoint

  1. In Confluent Cloud, in the Network Management tab of the desired environment, click the Confluent Cloud network to which you want to add the Private Service Connect Endpoint. The Connection Type of the network needs to be “Private Service Connect Access”.
  2. Click + Create endpoint in the Egress connections tab.
  3. Click the service you want to connect to, specifically, Snowflake.
  4. Follow the guided steps to specify the field values, including:
  5. Click Create endpoint.
  6. If there are additional steps for the specific target service, follow the prompt to complete the tasks, and then click Finish.

Step 4. Create a DNS record

Create DNS records associated with your Confluent Cloud Egress Endpoint.

  1. Create a DNS record for Snowflake’s privatelink-account-url by clicking Create record on the associated Egress Endpoint section.

    ../../_images/create-dns-record2.png
  2. Specify the value:

  3. Click Save.

  4. Create an additional DNS record for Snowflake’s regionless-privatelink-account-url (retrieved in Step 2. Obtain the required Snowflake Private Link information) by clicking Create DNS record.

    ../../_images/create-regionless-dns-record.png

Step 5. Create the Snowflake Sink connector

  1. Specify the authentication details for Snowflake.

    For the Connection URL, specify the Snowflake’s private endpoint URL in one of the two possible formats:

    • Account Locator URL (Legacy): https://<account_name>.<region_id>.privatelink.snowflakecomputing.com
    • Account Name URL : https://<org_name>-<account_name>.privatelink.snowflakecomputing.com
    ../../_images/add-snowflake-sink-connector1.png
  2. Follow the steps to create the sink connector in Confluent Cloud.