AWS access keys are required to operate on S3
Reported by Chris Olsen | April 13th, 2008 @ 12:31 AM
When calling on the has_attached_file method and passing the s3_credentials in a hash table format the following error results.
-> AWS access keys are required to operate on S3
- error results with this
line ~46: @s3 = RightAws::S3.new(@s3_credentials["access_key_id"],
@s3_credentials["secret_access_key"],
@s3_options)
Since the hash keys are more often symbols than strings the following works:
@s3 = RightAws::S3.new(@s3_credentials[:access_key_id],
@s3_credentials[:secret_access_key],
@s3_options)
Using a hash table with the access_key_id and secret_access_key was the only way I was able to get things to work without throwing the exception mentioned earlier.
I hope that is enough info.
Comments and changes to this ticket
-
Jon Yurek April 15th, 2008 @ 05:23 PM
- → State changed from new to open
- → Assigned user changed from to Jon Yurek
That's a good point. I suppose I should have it check both. My thinking here was that if you put your access keys in a YAML file (which is better for security) then they're more likely to simply be strings.
-
Jon Yurek April 16th, 2008 @ 10:42 AM
- → State changed from open to resolved
I've changed it to use symbol keys. You're right, it just makes more sense and is more common.
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
