Skip to main content

Credentials

1. Create a Spaces access key

  1. Sign in to the DigitalOcean console
  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

# .env.development
DO_SPACE=my-space
DO_REGION=nyc3
DO_ACCESS_KEY_ID=...
DO_SECRET_ACCESS_KEY=...
For Python configuration, see the DigitalOcean resource docs.