/// CREATE A BUCKET / DIGITALOCEAN SPACES
Create a DigitalOcean Space
Want object storage with an edge CDN baked in for your assets? DigitalOcean Spaces is S3-compatible storage with a free built-in CDN included on every bucket. Create a Space below, then connect it as a Fleet and manage it — including the CDN — straight from storafleet.
Create a DigitalOcean account
If you don't already have one, sign up at cloud.digitalocean.com and add a payment method. Everything below happens in the DigitalOcean Control Panel at cloud.digitalocean.com.
Create a Space (bucket)
In the Control Panel, open Spaces Object Storage in the left menu, then click Create Bucket in the top right. On the Create a Spaces Bucket page:
- Choose a datacenter region. Pick the region closest to your users — for example
nyc3,sfo3,ams3,fra1,sgp1, orsyd1. The region you choose becomes part of the bucket's endpoint URL, so note it down. - Choose a storage type — Standard Storage or Cold Storage. The storage type cannot be changed after the bucket is created, and the built-in CDN is only available on Standard Storage buckets.
- Enable the CDN (optional). Under the CDN section you can Enable the Spaces CDN and set an Edge Cache TTL. You can also turn this on later — and storafleet can manage it for you (see below).
- Name your bucket. The name must be unique across all DigitalOcean users in all regions, be 3–63 characters, contain only lowercase letters, numbers, and dashes, and begin with a letter or number. It becomes part of the endpoint URL and cannot be changed once created.
- Pick a destination project, review the summary, and click Create a Spaces Bucket.
See DigitalOcean's official guide: How to Create a Spaces Bucket.
Create a Spaces access key
Spaces uses its own S3-style credentials — separate from DigitalOcean API tokens. In the Control Panel, open Spaces Object Storage, click the Access Keys tab, then click Create Access Key. Spaces keys can only be created and managed in the Control Panel — not via the DigitalOcean API or CLI.
You'll get an Access Key (the ID) and a Secret Key. The secret is shown only once — copy it immediately and store it securely. You'll paste both into storafleet.
When creating the key, DigitalOcean offers two scopes:
- Full access — all supported S3 APIs on all buckets, including bucket policies, lifecycle rules, versioning, CORS, and static website settings.
- Limited access — restricted to specific buckets with Read or Read/Write/Delete permissions per bucket.
PutBucketPolicy policy, and you cannot apply a PutBucketPolicy to a bucket that already has a limited key. A scoped key would block storafleet from managing your bucket's policies.See DigitalOcean's official guide: How to Manage Access to Spaces.
Find your endpoint
Spaces puts the region in the endpoint hostname. The regional endpoint follows the format:
https://<REGION>.digitaloceanspaces.com— e.g. a bucket innyc3useshttps://nyc3.digitaloceanspaces.com.
That regional endpoint (without the bucket name prefix) is what you give storafleet. The per-bucket origin endpoint such as https://my-bucket.nyc3.digitaloceanspaces.com is for direct object URLs, not the connection endpoint.
Connect it to storafleet
Head to Connect DigitalOcean Spaces and create a Fleet using your bucket name, region, the regional endpoint, and the full-access Access Key + Secret Key. Once connected, you can browse, sync, and apply lifecycle and policy rules just like any other Fleet.
From there, use the CDN guide to enable and tune the Spaces edge CDN from storafleet, and the migration guide to move existing assets into your Space.