> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chowder.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Amazon S3

> Query files in Amazon S3 with your AWS credentials, or anonymously from public buckets.

Use `s3://` with the same readers you use for local and Hugging Face sources.

## URI form

```text theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
s3://<bucket>/<key>
```

## Query a public object

The Amazon Berkeley Objects source contains the original product photos used to build the demo image collection. This example reads one of those originals directly from its public S3 bucket:

```chowder-sql theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
SELECT
    source,
    format,
    width,
    height,
    size_bytes
FROM read_images('s3://amazon-berkeley-objects/images/original/1e/1e33b274.jpg');
```

No setup is needed. Without AWS credentials, Chowder reads public buckets anonymously. See [Authentication](#authentication).

The original image can have different dimensions from the resized demo copy. The source dataset is [CC BY 4.0](https://registry.opendata.aws/amazon-berkeley-objects/).

## Query your own mirror

After downloading the review fixture in [Local files](https://docs.chowder.ai/reference/sources/local-files.md), copy it into a bucket you own:

```bash theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
aws s3 cp demo/amazon-reviews.parquet s3://YOUR_BUCKET/chowder-demo/amazon-reviews.parquet
```

Replace `YOUR_BUCKET` with your bucket name. Then run:

```chowder-sql theme={"theme":"css-variables","languages":{"custom":["/languages/chowder-sql.json"]}}
SELECT
    title,
    content
FROM read_parquet('s3://YOUR_BUCKET/chowder-demo/amazon-reviews.parquet')
WHERE content ILIKE '%battery%'
LIMIT 5;
```

This second URI is a user-owned mirror, not a Chowder-hosted public bucket.

## Authentication

Chowder uses the process's standard AWS credential chain: `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`, profiles from `aws configure`, SSO sessions from `aws sso login`, and workload roles. Keep credentials outside SQL.

* **No credentials found:** Chowder reads the bucket anonymously and logs this at info level, once per bucket. Public objects load. A private bucket fails with an error that names the bucket and how to configure credentials.
* **Credentials added later:** Chowder checks again on the next query, so you don't need to restart Python after `aws sso login`.
* **A credential source fails:** for example, with an expired SSO session or a missing profile, the query fails with that error instead of reading anonymously.
* **Forced anonymous access:** set `AWS_SKIP_SIGNATURE=true` to read anonymously even when credentials exist. Chowder skips the credential lookup.

Anonymous reads detect the bucket's region, so `AWS_REGION` is optional. S3 reads run in your application, including with remote compute, and AWS credentials aren't sent to the compute server.

Chowder reads only the byte ranges a reader needs, such as selected Parquet columns or matching MCAP chunks.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.