The one to follow is Using Object Storage for Uploads (S3 & Clones). Things work a bit differently if you use those environment variables and that’s what you want. Don’t forget the part at the top about the rake task.
I think that there is some issue with knowing just how to create the bucket permissions.