1 Reply
Hey 👋
Your question is a bit vague, so I'll give two answers.
1. If you're trying to access R2 from a cloudflare worker, then you want to bind the R2 bucket to your worker and access it that way. You can read more about it here - https://developers.cloudflare.com/r2/api/workers/workers-api-usage/
2. If you are trying to access it externally via an S3 client
- Remember to enable public access on the bucket
- You can find the S3 API url under the settings -> bucket details (see picture). The S3 url also follows a pretty standard convention -
https://<accountID>.r2.cloudflarestorage.com/<bucketName>
Use R2 from Workers · Cloudflare R2 docs
C3 (create-cloudflare-cli) is a command-line tool designed to help you set up and deploy Workers & Pages applications to Cloudflare as fast as …