Cloudflare R2 integration
Cloudflare R2 is a cloud object storage service for data-intensive applications. Its API follows the same schema as any S3-compatible API.
Cloudflare R2 is used in Windmill through the generic s3 resource type. The S3 APIs integrations page is the canonical reference: it covers the resource fields, how to use the resource in scripts, flows and apps, and how to plug a bucket as workspace or instance object storage.
Where to find the resource details on Cloudflare
See the R2 S3 API documentation for details.
| Property | Value for Cloudflare R2 |
|---|---|
| bucket | Name of the bucket, from the R2 dashboard |
| region | Set when creating the bucket; auto routes to the closest available region |
| endPoint | In the form <account-id>.r2.cloudflarestorage.com, from the bucket settings in the R2 dashboard |
| useSSL | true - SSL/TLS is required for Cloudflare R2 |
| pathStyle | false - virtual-hosted-style URLs are used by default in R2 |
| accessKey | Access key ID of an R2 API token, created from the R2 dashboard under "Manage R2 API Tokens" |
| secretKey | Secret access key of the same R2 API token |