Module 05 · Lesson 14 of 15Detailed study · about 20 min

Cross-cloud access, S3-compatible endpoints and exports

The storage provider and Snowflake account location are separate choices. Supported access paths still need a deliberate plan for endpoints, transfer cost, data location and write permissions.

Understand the idea

A valid URL does not prove the account can reach it. Review the provider’s supported endpoint and connectivity requirements, the organization’s data-residency rules and potential transfer charges. Avoid claiming all provider, region and private-network combinations work identically.

Key ideas in simple English
ConceptWhat it means
Cross-cloudRead storage hosted on a different provider or region where supported.
S3-compatibleAn endpoint implementing supported S3 APIs; not automatically an AWS integration.
Read vs exportExporting creates files and needs write authorization beyond a read-only setup.

A concrete example

Do not execute unchanged. S3-compatible endpoint support must be confirmed for the account and storage service; credentials require an approved secret-management workflow.

Remember: Validate the exact operation you intend to perform. Read access is not write access.

Explain it step by step · full theory

Understand the idea

A valid URL does not prove the account can reach it. Review the provider’s supported endpoint and connectivity requirements, the organization’s data-residency rules and potential transfer charges. Avoid claiming all provider, region and private-network combinations work identically.

S3-compatible storage has its own endpoint, credentials and support requirements. Use the official provider-specific instructions; do not reuse the AWS IAM-role integration procedure merely because the service uses an S3 API. A template below illustrates the distinction, not a ready-to-run connection.

Follow the workflow

For secure unloading, choose a separate approved output prefix and a dedicated write-capable integration or appropriately scoped identity. Grant only the operations required by the provider workflow. Do not broaden the incoming read-only identity just to make a demonstration easier.

Module 06 teaches COPY INTO <location>. Here we inspect a preconfigured export stage and verify ownership and destination first. Listing demonstrates read/list access, not proof that write permissions work.

Words used in this lesson
Cross-cloud
Read storage hosted on a different provider or region where supported.
S3-compatible
An endpoint implementing supported S3 APIs; not automatically an AWS integration.
Read vs export
Exporting creates files and needs write authorization beyond a read-only setup.

See how it works

Choose a step to explore the idea at your own pace.

Open the interactive explanation
Interactive explainer1 / 3

Cross-cloud access, S3-compatible endpoints and exports

Source files
Storage location

Locate the data

The storage provider and Snowflake account location are separate choices. Supported access paths still need a deliberate plan for endpoints, transfer cost, data location and write permissions.

Automatic playback is off for reduced motion. Select any step or use Previous and Next. Illustrations explain behavior; they are not live measurements.

Read the complete diagram explanation
  1. Locate the data

    The storage provider and Snowflake account location are separate choices. Supported access paths still need a deliberate plan for endpoints, transfer cost, data location and write permissions.

  2. Configure the boundary

    A valid URL does not prove the account can reach it. Review the provider’s supported endpoint and connectivity requirements, the organization’s data-residency rules and potential transfer charges. Avoid claiming all provider, region and private-network combinations work identically.

  3. Observe the outcome

    Validate the exact operation you intend to perform. Read access is not write access.

Try the SQL or command

Read → predict → run in your learning environment → compare. You can also learn by reading without an account.

New to SQL? Where to run it and how to read it

A query is a question written in SQL. Snowflake runs it and returns a result table. This website shows examples; it does not connect to your account.

  1. No account yet? Read and predict the output first. Follow the account and Snowsight lesson when you are ready.
  2. For SQL practice, use a learning account in Snowsight and select an authorized role and warehouse. A role determines permissions; a warehouse supplies processing power. Follow the example’s database/schema setup when it refers to stored objects.
  3. Read the entire example, including comments beginning with --. Run the selected statement or labeled block in the stated order. Examples labeled Python, shell or HTTP belong in that client, not in a SQL editor.
  4. Compare values and row counts with the explained result. If an example deliberately causes an error, follow its rollback and cleanup steps before continuing.
SELECT / FROM
Choose the values to return / identify their input.
VALUES / COLUMN1
VALUES supplies tiny example rows. COLUMN1 means their first column, COLUMN2 their second.
AS / WITH
AS gives a result a readable name. WITH names a temporary query step within one statement.
NULL / ::
NULL means missing or unknown. The :: notation converts a value to a named data type.
Session
One connection and its settings. Keep related transaction steps in the same session.
Database.schema.table
A full address for stored data. It is separate from the warehouse that processes queries.

Need the L2_OBJECTS_LAB setup? Open the first database-object lesson →

Help with common practice errors
  • No active warehouse: select a warehouse your role can use. Do not assume you need to create a new one.
  • Object missing or not authorized: check the full name, required setup and active role. Ask the account owner for access if needed.
  • Object already exists: setup may already have run. Read the current state or choose a fresh lab name consistently; do not add OR REPLACE blindly.
  • Different result: check whether an earlier INSERT or UPDATE changed the data. VALUES examples provide their own fresh input for each statement.
Shared orders.csv and internal-stage setup
Our shared source file

Four orders, one CSV contract

Every CSV lesson uses this fictional orders.csv. One data record represents one order. The first line is a header; the four remaining lines are data. All amounts use the same fictional currency.

order_id,customer_name,amount,order_date
101,"Asha, Rao",120.50,2025-01-01
102,Ben,,2025-01-02
103,Cara,NULL,2025-01-03
104,Dev,0,2025-01-04

Notice the comma inside Asha’s quoted name, Ben’s empty amount, Cara’s literal NULL marker and Dev’s zero. We will follow these exact values from file bytes to parsed fields.

Setup order for optional manual practice
  1. Select an authorized sandbox database and schema. Keep this context consistent across your client sessions.
  2. Create orders_csv_v1 using lesson 3, then orders_stage using lesson 5. Use fresh sandbox names; do not replace existing shared objects.
  3. Save the text above as a UTF-8 file named orders.csv. Upload it with a supported local client or the named-stage upload interface.
  4. Keep only this sample file under the incoming/ prefix when following the four-row expected results.
  5. Select an authorized warehouse for the staged SELECT examples. File previews use compute; this website runs no SQL.

The examples assume the required role privileges described in the lessons. The external-stage and JSON examples have their own additional setup and are clearly marked.

Before running this lesson

Manual learning examples, not executed here. Use L2_OBJECTS_LAB.SALES from Module 03 and an authorized warehouse for previews. Run shared format/stage setup once. Cloud examples are templates: replace every <placeholder>, use approved cloud resources, and follow the provider setup before running SQL. No credentials belong in this website.

S3-compatible endpoint template

SQL · example
-- Provider-specific template: use approved secret handling, not a shared worksheet.
CREATE STAGE m5_compatible_stage
 URL='s3compat://<bucket>/<prefix>/'
 ENDPOINT='<supported-endpoint-host>'
 CREDENTIALS=(AWS_KEY_ID='<access-key-id>' AWS_SECRET_KEY='<secret>');

What to expect and why

Do not execute unchanged. S3-compatible endpoint support must be confirmed for the account and storage service; credentials require an approved secret-management workflow.

Inspect a separately authorized export stage

SQL · example
-- Requires an export stage already provisioned by its owner:
DESC STAGE <approved_export_stage>;
LIST @<approved_export_stage>;

What to expect and why

Check the URL, integration and intended output prefix. LIST does not write a file and is not a write-permission test; an actual controlled export is covered next module.

Check your understanding

Choose an answer, then check your reasoning. This is practice, not a scored test.

Can a successful LIST prove an unload will work?

Try it yourself

Why use a separate output prefix for exports?

Compare your reasoning

It separates generated outputs from source deliveries and makes write permissions, cleanup and ownership easier to scope.

Official sources and curriculum

Module 05 · See module scope