Prepare Cloudflare - Setup Guide (Cloudflare R2)
bucketAV requires an R2 subscription, Workers Paid plan subscription, API token and R2 access key.
- You need a R2 subscription to use Cloudflare R2.
- You need a Workers Paid plan subscription to use Cloudflare Workers and Queues.
- Create an API token to provide read and edit access to Queues, Workers, and R2 (manage queue, manage worker, manage R2 event notifications):
- Open the Cloudflare dashboard.
- Open your Profile.
- Navigate to API Tokens and click Create Token.
- Scroll down to the bottom. Next to Create Custom Token, click on Get started.
- Set Token Name to
bucketav
. - Set Permissions to:
- Account | Queues | Read |
- Account | Queues | Edit |
- Account | Workers R2 Storage | Read |
- Account | Workers R2 Storage | Edit |
- Account | Workers Scripts | Read |
- Account | Workers Scripts | Edit |
- Click Continue to summary.
- Click Create token.
- Save the token for later.
- Create an R2 access key to provide admin access to R2 (list buckets, read & write objects):
- In the Cloudflare dashboard, navigate to R2 and click Manage R2 API Tokens.
- Click Create API token.
- Set Token name to
bucketav
. - Set Permissions to Admin Read & Write.
- Click Create API token.
- Copy Access Key ID and Secret Access Key.