Cannot add Cloudflare R2 bucket
Hi there!
I am trying to add a CF R2 bucket for storage of my FluentCommunity site and I followed the documentation:
https://github.com/WPManageNinja/fluent-community-docs/blob/master/configure-cloudflare-r2.md
But when I want to add the bucket I get this error:
S3::getBucket(): [AccessDenied] Access Denied
That seems strange because I am not using S3, right?
Am I doing something wrong?
Thanks!
In which step you are getting this error? I integrated CF R2 last week without any issue.
Thushara LakshanΒ when I added the R2 credentials in Fluentcommunity and hit save. I tripple checked if the keys, dev url and bucket name where correct.
It looks like it's trying to apply Amazon S3 somehow looking at the error message or is this normal?
I also tried to add the Cloudflare R2 config to the functions.php but when I upload an image in a post I'll get 'error in uploading to S3'.
Looks like something isn't configured properly in R2.
Create an R2 bucket
- Generate API tokens with proper permissions
- Set up a custom domain
- Configure FluentCommunity plugin
I used Custom Domain option not r2.dev sub domain.
Thushara LakshanΒ Ah okay, I didn't test a custom domain yet. I will try that. Thanks!
-- edit --
Ah too bad, I can't do custom domains because you have to have your DNS handled by CF and I don't want that.
Well thatβs mighty strange! I added another bucket in exactly the same way and now it works! Yay! Iβm a happy camper now π
Rob de WitΒ Great!