Private connectivity to external volumes for S3-compatible storage¶
This topic provides configuration details to set up outbound private connectivity to an external volume for S3-compatible storage. The
primary difference between outbound public connectivity and outbound private connectivity is how you set the USE_PRIVATELINK_ENDPOINT
property for the external volume.
When the external volume is configured to use private connectivity, your connection to the S3-compatible storage service goes through your cloud provider’s internal network. By configuring your external volume to use outbound private connectivity, you add additional security to your operations by blocking public access to the storage location.
S3-compatible external volumes are supported on Snowflake accounts deployed on Amazon Web Services (AWS), Microsoft Azure, and Google Cloud Platform (GCP). The steps to provision a private endpoint depend on which cloud provider hosts your Snowflake account.
For more information about using external volumes to connect to your external cloud storage for Iceberg tables, see Configure an external volume.
Outbound private connectivity costs¶
You pay for each private connectivity endpoint along with total data processed. For pricing of these items, see the Snowflake Service Consumption Table.
You can explore the cost of these items by filtering on the following service types when querying billing views in the ACCOUNT_USAGE and ORGANIZATION_USAGE schemas:
- OUTBOUND_PRIVATELINK_ENDPOINT
- OUTBOUND_PRIVATELINK_DATA_PROCESSED
For example, you can query the USAGE_IN_CURRENCY_DAILY view and filter on these service types.
Considerations¶
You can configure outbound public connectivity and outbound private connectivity for the same S3-compatible storage service. If you want
to do this, create a dedicated external volume for outbound public connectivity and specify USE_PRIVATELINK_ENDPOINT = FALSE.
Set up outbound private connectivity to an external volume¶
Syntax updates¶
The USE_PRIVATELINK_ENDPOINT property of an external volume determines whether it is accessed through private connectivity or by
traversing the public network. To use private connectivity, set USE_PRIVATELINK_ENDPOINT = TRUE when creating or modifying an external
volume.
The syntax for CREATE EXTERNAL VOLUME and ALTER EXTERNAL VOLUME is as follows:
The DESCRIBE EXTERNAL VOLUME command includes the USE_PRIVATELINK_ENDPOINT property and its value.
Provision a private endpoint¶
The steps to provision a private endpoint depend on the cloud provider that hosts your Snowflake account. Follow the steps for your deployment.
AWS¶
Call the SYSTEM$PROVISION_PRIVATELINK_ENDPOINT system function to provision a private endpoint in your Snowflake VNet for the S3-compatible storage service:
Where <service_name> is the PrivateLink service name provided by your S3-compatible storage provider, and
<s3_compatible_endpoint_hostname> is the fully qualified hostname of your S3-compatible API endpoint (the value you specify for
STORAGE_ENDPOINT in the external volume).
Azure¶
Call the SYSTEM$PROVISION_PRIVATELINK_ENDPOINT system function to provision a private endpoint for the S3-compatible storage service:
Where <resource_id> is the Azure resource ID of Azure storage privatelink service, <s3_compatible_endpoint_hostname> is the fully
qualified hostname of your S3-compatible API endpoint, and <subresource> is the sub-resource type for the storage service, the options
being blob or dfs.
After calling the function, approve the private endpoint in the Azure Portal as the owner of the Azure storage resource. For details, see the approval process (https://learn.microsoft.com/en-us/azure/private-link/manage-private-endpoint?tabs=manage-private-link-powershell#private-endpoint-connections).
GCP¶
Call the SYSTEM$PROVISION_PRIVATELINK_ENDPOINT system function to provision a private endpoint for the S3-compatible storage service:
Where <service_endpoint> is the Private Service Connect service endpoint provided by your S3-compatible storage provider, and
<s3_compatible_endpoint_hostname> is the fully qualified hostname of your S3-compatible API endpoint.
Configure external volume access¶
After provisioning the private endpoint, follow these steps to create the external volume and verify connectivity:
-
Call the SYSTEM$GET_PRIVATELINK_ENDPOINTS_INFO function.
When the output of the function includes
"status": "APPROVED", your connection from Snowflake to your S3-compatible storage service will be able to use private connectivity.You can continue with the next steps while waiting for the
"APPROVED"status. -
Create the external volume, and set the
USE_PRIVATELINK_ENDPOINTproperty toTRUE. For example: -
After the private endpoint has an
"APPROVED"status, verify that the external volume is functional:
Deprovision an endpoint¶
If you no longer need the private connectivity endpoint for the external volume, unset the USE_PRIVATELINK_ENDPOINT property on the
external volume, and then call the SYSTEM$DEPROVISION_PRIVATELINK_ENDPOINT system function.