I have a rails application running on Heroku. I use paperclip for some simple image downloads for user avatars and some other things, I have S3 installed as my backend and everything seems to work fine except when trying to click on S3. I get the following error:
The AWS Access Key Id you provided does not exist in our records.
I think that I incorrectly stuck my passkey and secret key, I tried again, still no luck. I think that it was just a buggy key, I disabled it and created a new one. Not lucky yet.
Now for both keys I used the S3 browser application in OS X and was able to connect to each of them and look at my current buckets and add / remove buckets. Is there something I should look for? I have my S3 application and clip setting, for example,
development: bucket: (unique name) access_key_id: ENV['S3_KEY'] secret_access_key: ENV['S3_SECRET'] test: bucket: (unique name) access_key_id: ENV['S3_KEY'] secret_access_key: ENV['S3_SECRET'] production: bucket: (unique_name) access_key_id: ENV['S3_KEY'] secret_access_key: ENV['S3_SECRET'] has_attached_file :cover, :styles => { :thumb => "50x50" }, :storage => :s3, :s3_credentials => "#{RAILS_ROOT}/config/s3.yml", :path => ":class/:id/:style/:filename"
EDIT NOTE: ENV ['S3_KEY'] and ENV ['S3_SECRET'] are environment variables in heroku that I have tried even using my keys directly, and it still does not work.
Note. I just added bits (unique name), in fact they are not. I also checked the names of the bucket, but I donβt even think it is that far. I also set up environment settings for heroku correctly and set them to dev
source share