Skip to main content

Cloudflare integration

Cloudflare R2 is a cloud object storage service for data-intensive applications.

Instance and workspace object storage are different from using S3 resources within scripts, flows, and apps, which is free and unlimited. This is what is described in this page.

At the workspace level, what is exclusive to the Enterprise version is using the integration of Windmill with S3 that is a major convenience layer to enable users to read and write from S3 without having to have access to the credentials.

Additionally, for instance integration, the Enterprise version offers advanced features such as large-scale log management and distributed dependency caching.

Cloudflare's API follows the same schema as any S3 compatible API.

Add a S3 resource

To integrate Cloudflare to Windmill, you need to save the following elements as a resource.

S3 resource type

Here is the information on where to find the required details:

PropertyTypeDescriptionDefaultRequiredWhere to FindAdditional Details
bucketstringS3 bucket nametrueR2 DashboardName of the S3 bucket to access
regionstringAWS region for the S3 buckettrueR2 documentationThe region is specific to R2 and is set when creating the bucket
useSSLbooleanUse SSL for connectionstruefalseR2 documentationSSL/TLS is required for Cloudflare R2
endPointstringS3 endpointtrueR2 documentationEndpoint URL will be in the format https://[bucket-id].r2.storage.cloud.cloudflare.com
accessKeystringAWS access keyfalseNot applicable for Cloudflare R2Access key ID is not required for R2
pathStylebooleanUse path-style addressingfalsefalseNot applicable for Cloudflare R2Virtual-hosted-style URLs are always used in R2
secretKeystringAWS secret keyfalseNot applicable for Cloudflare R2Secret access key is not required for R2


Your resource can be used passed as parameters or directly fetched within scripts, flows and apps.


Example of a Supabase resource being used in two different manners from a script in Windmill.


tip

Find some pre-set interactions with S3 on the Hub.

Feel free to create your own S3 scripts on Windmill.

Workspace object storage

Once you've created an S3 or Azure Blob resource in Windmill, you can use Windmill's native integration with S3 and Azure Blob, making it the recommended storage for large objects like files and binary data.

Workspace object storage Infographic

The workspace object storage is exclusive to the Enterprise edition. It is meant to be a major convenience layer to enable users to read and write from S3 without having to have access to the credentials.

Instance object storage

Under Enterprise Edition, instance object storage offers advanced features to enhance performance and scalability at the instance level. This integration is separate from the Workspace object storage and provides solutions for large-scale log management and distributed dependency caching.

S3/Azure for Python/Go cache & large logs