LEARN HOW TO PREPARE YOUR DATA WAREHOUSE FOR AGENTIC AI WORKLOADSRegister for the webinar

Skip to main content

From Cloud Storage or over HTTPS

From Public Cloud Storage

MotherDuck supports several cloud storage providers, including Amazon S3, Azure, Google Cloud and Cloudflare R2.

note

MotherDuck is currently available on AWS in two regions, US East (N. Virginia) - us-east-1 and Europe (Frankfurt) - eu-central-1. For an optimal experience, we strongly encourage you locate your data in the same region as your MotherDuck Organization.

The following example features Amazon S3.

  1. In the left panel of the UI, click Add data
  2. Select From cloud storage
  1. For a publicly accessible bucket, skip creating a secret
  1. Enter the S3 bucket path (e.g., s3://motherduck-demo) and select the files you want, or use Wildcard mode to choose files with a matching pattern
  2. Preview the files and select the table names and destination database
  3. Click Create tables

From a Secure Cloud Storage Provider

MotherDuck supports several cloud storage providers, including Amazon S3, Azure, Google Cloud, and Cloudflare R2. In order to access them securely, you first must create a secret.

You can set cloud storage secrets directly from the UI under Settings —> Integrations —> Secrets, or with the "Add data" button in the left panel.

First, create a secret for your cloud storage credentials:

  1. Go to SettingsIntegrationsSecrets

The MotherDuck UI for adding a new secret

  1. Click Add secret and select your cloud storage provider (S3, R2, GCS, Azure)
  1. Enter your access key and secret for your service account in your cloud storage provider.
  2. For S3 credentials, you can test and verify your connection before saving

Once your secret is configured, load data from your secure bucket:

  1. In the left panel of the notebook UI, click Add data
  2. Select From cloud storage
  3. Enter the bucket path and select the files you want, or use Wildcard mode to choose files with a matching pattern
  4. Preview the files and select the table names and destination database
  5. Click Create tables
note

When loading data from Azure or Hugging Face, you must use Wildcard mode to select files. Browse mode is not currently supported for these providers.

Over HTTPS

MotherDuck supports loading data over HTTPS.

-- Reads the Central Park Squirrel Data
SELECT * FROM read_csv_auto('https://docs.google.com/spreadsheets/d/e/2PACX-1vQUZR6ikwZBRXWWQsFaUceEiYzJiVw4OQNGtwGBfcMfVatpCyfxxaWPdoKJIHlwNM-ow1oeW_2F-pO5/pub?gid=2035607922&single=true&output=csv');