https://pulumi.com logo
Title
g

glamorous-australia-21342

11/17/2022, 9:38 PM
Is there any support for CloudFlare R2? https://blog.cloudflare.com/introducing-r2-object-storage/ I'm having trouble finding some information. Not seeing anything in the API docs. https://www.pulumi.com/registry/packages/cloudflare/api-docs/ Seems like Terraform might be limited as well?
f

fierce-ability-58936

11/17/2022, 10:06 PM
Based on
The most familiar API for Object Storage, and the API R2 implements, is Amazon’s Simple Storage Service (S3).
The AWS provider should support it? Like they do with terraform https://developers.cloudflare.com/r2/examples/terraform/
g

glamorous-australia-21342

11/18/2022, 5:26 PM
Ah I see thank you! How can R2 custom domains be handled then @fierce-ability-58936?
f

fierce-ability-58936

11/20/2022, 7:06 PM
Oh, I don't have an account with Cloudflare, but I believe it should be exposed in their API and supported by the cloudflare provider? Could be that one https://www.pulumi.com/registry/packages/cloudflare/api-docs/customhostname/ with zone being the bucket id or something. I'd open the browser developer console and try to connect a custom domain to the bucket and see what requests the browser makes. Often you can get the exact API calls and then find the description of them in the API spec (https://api.cloudflare.com/) Maybe it's already supported by CustomHostname as above, but if not, then a Dynamic Provider for Pulumi should do it. If the API is not defined, then we're out of luck.