Prepare Cloudflare - Setup Guide (Cloudflare R2)

bucketAV requires an R2 subscription, Workers Paid plan subscription, API token and R2 access key.

  1. You need a R2 subscription to use Cloudflare R2.
  2. You need a Workers Paid plan subscription to use Cloudflare Workers and Queues.
  3. 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. Cloudflare: step 1
    • Navigate to API Tokens and click Create Token. Cloudflare: step 2
    • Scroll down to the bottom. Next to Create Custom Token, click on Get started. Cloudflare: step 3
    • 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. Cloudflare: step 4
    • Click Create token. Cloudflare: step 5
    • Save the token for later. Cloudflare: step 6
  4. 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. Cloudflare: step 7
    • Click Create API token. Cloudflare: step 8
    • Set Token name to bucketav.
    • Set Permissions to Admin Read & Write.
    • Click Create API token. Cloudflare: step 9
    • Copy Access Key ID and Secret Access Key. Cloudflare: step 10

Stay up-to-date

Monthly digest of security updates, new capabilities, and best practices.