How to change file resolution for all files in an S3 bucket using aws-s3 or right_aws gem

Is there a way to change the resolution of each individual file in an S3 bucket using aws-s3 or right_aws gem?

I can not find it in the documentation. Do I need to do each file separately?

I would like to grant permission to view "everyone."

+3
source share
3 answers

I do not believe that these gems should set permissions, which may be the reason that you will not find this feature in the documents. Set your permissions in the AWS console or through your API; Amazon also has command line tools for setting S3 permissions.

The aws-s3 driver (and probably the right ones) is also designed to read and store files in S3 from ruby. Setting permissions is a slightly different discipline.

+1
source

RightAws :: S3 :: Grantee.new (key, "http://acs.amazonaws.com/groups/global/AllUsers", ["READ"] ,: apply, "AllUsers") works for me.

+1
source

Source: https://habr.com/ru/post/1759404/


All Articles