Just to update this post I had some gotchas that needed to be included before cloudflare worked for me.
1. Region
This wasn’t true, I had to use “auto” or the region I selected, auto is easier so use auto.
if you need to know which options you can use, try with any random string in your region and:
sudo -E -u discourse bundle exec rake s3:upload_assets
If you use nixos
sudo discourse-rake s3:upload_assets
This will spit out an error for your valid options
2. API permissions
It’s also important to know that the restrictive API tokens do not work. You have to use the Admin Read & Write
Object Read & Write
did not work