I am trying to configure Amazon Simple Storage Service for use with rails. I get an error message:
The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.
The problem is that I chose the Frankfurt S3 region, and only the V4 scheme is supported there. This is the same error message as in the this message, which directs you to the solution here , with instructions on how to “set: the s3_signature_version parameter to: v4 when building the client”. Command:
s3 = AWS::S3::Client.new(:s3_signature_version => :v4)
My question is: how do I do this? Where can I put this code?
EDIT:
I tried to put :s3_signature_version => :v4 in carrier_wave.rb as follows, but while loading in heroku he said [fog][WARNING] Unrecognized arguments: s3_signature_version , and that didn't matter, I still get an error message.
configurations / Initializers / carrier_wave.rb:
if Rails.env.production? CarrierWave.configure do |config| config.fog_credentials = {
EDIT:
I created a new bucket using the Northern California region for which this should not be a problem, but I still get exactly the same error message.
EDIT:
It doesn't matter either:
if Rails.env.production? CarrierWave.configure do |config| config.fog_credentials = {
source share