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

# DigitalOcean Spaces

> Set up DigitalOcean Spaces credentials for the DigitalOcean resource.

## Credentials

### 1. Create a Spaces access key

1. Sign in to the [DigitalOcean console](https://cloud.digitalocean.com/)
2. Go to **API** -> **Spaces Keys** -> **Generate New Key**
3. Copy the **Access Key** and **Secret**
4. Note your Space's **region** (e.g. `nyc3`) and **Space name** (the bucket)

The endpoint is derived from `region` as `<region>.digitaloceanspaces.com`.

### 2. Set environment variables

```bash theme={null}
# .env.development
DO_SPACE=my-space
DO_REGION=nyc3
DO_ACCESS_KEY_ID=...
DO_SECRET_ACCESS_KEY=...
```

For Python configuration, see the [DigitalOcean resource](/python/resource/digitalocean) docs.
