S3 with Cloudflare R2

It doesnt seem to work for me I setup AWS S3 and got that working fine, and it also showed me the basics, but when I went to using cloudflares R2 which supports S3 it doesnt seem to work, any thoughts?

for more context I followed their guide:

setting <https://<ACCOUNT_ID>.r2.cloudflarestorage.com> as the Backend URL

and setup a S3 API which is the equivelent to a User on AWS for AMP access

put in the keys for access, and set region to auto, as they had stated. I also tried it empty to no avail

Also having no luck setting up R2. Did you manage to find a solution to this?

Tried it with and without:

  • Specific regions and appending /bucketname for the backend URL
  • Auth region set to auto, us-east-1, or blank
  • Bucket name blank (with and without appending / to the backend URL)
  • Force path style
  • Disable payload signing

Have also changed the storage class from standard to none, swapped the access and secret keys in case they were back-to-front, and created a subfolder manually within the bucket (in case it was trying to upload to a subfolder that didn’t exist and the API couldn’t create).

Wondering if there are some S3 API calls being made that R2 doesn’t support yet, but AMP makes specific mention of R2 under payload signing, so surely compatible?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.