# S3-compatible storage

Choose this destination for Cloudflare R2, MinIO, Backblaze B2, Wasabi or another S3-compatible service. Send2Bucket must be able to reach the endpoint over HTTPS from the public internet.

## What you provide

| Field | Kind | Example |
|---|---|---|
| `bucket` | setting | `analytics-raw` |
| `endpoint` | setting | `https://<account_id>.r2.cloudflarestorage.com` |
| `region` | setting | The signing region: `auto` for R2, `us-east-1` for most MinIO setups |
| `prefix` | setting | `raw` |
| `addressing` | setting | `path` (`https://endpoint/bucket/key`) or `virtual` (`https://bucket.endpoint/key`) |
| `access_key_id` | credential | A key scoped to the bucket |
| `secret_access_key` | credential | Its secret |

Self-hosted MinIO usually needs `path`. Check your provider's documentation if unsure.

## Scope the key

Give the key `PutObject` and `GetObject` on `raw/s2b/*` in the bucket and nothing else, using the provider's own policy format. On MinIO:

```json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": ["s3:PutObject", "s3:GetObject"],
      "Resource": "arn:aws:s3:::analytics-raw/raw/s2b/*"
    }
  ]
}
```

On R2, create an API token with Object Read & Write permission limited to the bucket. [Events and OpenTelemetry to Cloudflare R2](../guides/send-to-cloudflare-r2.md) walks through the R2 setup end to end.

## Add the destination

Enter the fields in the dashboard and select Verify. Send2Bucket writes a test object under `raw/s2b/` and reads it back; the destination then becomes `active`.

After a lost upload response, Send2Bucket reads the object back and checks its batch identity before retrying, so a retry never creates a second object. Objects use the layout in [Delivery format](../delivery-format.md).

## Query your data

- [DuckDB](../querying/duckdb.md#s3-compatible-storage): reads the objects in place.
- [Trino](../querying/trino.md): external table with a custom endpoint.
- [PostgreSQL](../querying/postgres.md): load into `jsonb`.
- [MySQL](../querying/mysql.md): load into `JSON`.
- [Python](../querying/python.md): Polars, PyIceberg or the duckdb package.
- [R](../querying/r.md): the duckdb package.
- [ClickHouse](../querying/clickhouse.md)
- [Snowflake](../querying/snowflake.md)
- [Microsoft Fabric](../querying/fabric.md)
- [Databricks](../querying/databricks.md)
- [Apache Spark](../querying/spark.md)
- [StarRocks](../querying/starrocks.md)
- [Dremio](../querying/dremio.md)

To explore in a notebook or BI tool, see [Integrations](../integrations/index.md). The [querying overview](../querying/index.md) compares engines.
