/// CREATE A BUCKET / CLOUDFLARE R2
Create a Cloudflare R2 Bucket
Coming from S3 to cut your egress bill? R2 charges zero egress fees — you pay for storage and operations, not for data leaving the bucket. Stand up an R2 bucket here, then connect it to storafleet and migrate your objects across with Cloudflare's Sippy and Super Slurper.
Create a Cloudflare account / enable R2
R2 lives in your Cloudflare account. If you do not have one, sign up at dash.cloudflare.com, then enable R2:
- In the dashboard, go to Storage & databases → R2 → Overview.
- The first time you open R2 you complete a short checkout to add an R2 subscription to the account. R2 is free to get started with included monthly usage; you only pay for storage and operations above the free tier.
See Cloudflare's Get started with R2 guide for the current signup flow.
Create an R2 bucket
From the R2 Overview page:
- Click Create bucket.
- Enter a bucket name. This is the name storafleet will use as the bucket for the Fleet.
- Under Location, leave it on automatic to let Cloudflare pick a region, or pick a location hint to bias placement near your users.
- Click Create bucket to finish.
Create an R2 API token
R2's S3 credentials come from an API token. In the dashboard, open R2 → Overview, find API Tokens in the Account details panel, and click Manage API tokens:
- Click Create API token (choose an Account API token for a token tied to the account, or a User API token tied to your user).
- Set Permissions to Object Read & Write — storafleet reads, writes, lists, and deletes objects, but does not need to create or delete buckets.
- Optionally restrict the token to specific buckets (the one you just created), then create the token.
When you create the token in the dashboard, Cloudflare shows the two S3 credentials directly on the confirmation screen:
- an Access Key ID, and
- a Secret Access Key — paste this straight into Storafleet (no hashing needed).
(Only if you mint a token through the Cloudflare API instead of the dashboard is the Secret Access Key the SHA-256 hash of the token value — the dashboard hands you the ready-to-use secret.) See Cloudflare's R2 API tokens docs.
Find your endpoint & account ID
R2 exposes an S3-compatible endpoint scoped to your account:
https://<ACCOUNT_ID>.r2.cloudflarestorage.com
Your account ID is shown on the R2 Overview page and on the Create API token confirmation screen — it is the same value embedded in the endpoint above. For jurisdiction buckets, use the matching endpoint: https://<ACCOUNT_ID>.eu.r2.cloudflarestorage.com (EU) or https://<ACCOUNT_ID>.fedramp.r2.cloudflarestorage.com (FedRAMP).
region — S3 clients use auto. storafleet handles this for you when you pick R2 as the provider.See Cloudflare's S3 API get started guide for the endpoint and credential details.
Connect it to storafleet
You now have everything storafleet needs: the bucket name, the S3 endpoint, the Access Key ID, and the Secret Access Key. Head to Connect R2 to storafleet to create the Fleet — storafleet encrypts your keys at rest exactly as it does for AWS access keys.
Escaping an AWS bill? That is the whole point — see Migrate off AWS for the cost case, and the migration guide for moving your objects into R2 with Sippy and Super Slurper.