ruby on rails - Access Denied S3 with Paperclip -


i'm getting acquainted using s3 ruby upload files amazon web service. confronted following error: aws::s3::errors::accessdenied access denied. in poking around on google, found this post on error. claims bucket policies aren't sufficient allow access via web-app , user must given "administrator access" well.

i've given try , works fine feel indication i'm not doing right, given administrator access isn't mentioned in other documentation i've read. i'm using aws-sdk gem. weigh in on whether admin access necessary? many thanks!

you should not need admin access achieve this. make sure have aws access_key_id , secret_access_key setup in heroku config. and, need make sure user account has access policy set in aws iam console.

see this post more info.

the default permission paperclip :public_read unless specify bucket private.

see information module: paperclip::storage::s3


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -