aws

http://status.aws.amazon.com/ https://www.expeditedssl.com/aws-in-plain-english
zendevil 2021-01-19T07:51:29.000700Z

I’m using amazonica to upload a file to a bucket like so:

zendevil 2021-01-19T07:51:40.000900Z

(s3/put-object “humboi-videos” “video1.mp4" “./resources/public/sample.mp4”)

zendevil 2021-01-19T07:52:53.002400Z

The objects that are created are not publicly readable, and I want them to be publicly readable. How to do this? Secondly, how to programmatically access the object uri?

lukasz 2021-01-19T15:05:23.002800Z

You need to pass :access-control-list {:grant-permission ["AllUsers" "Read"] to put-object

lukasz 2021-01-19T15:06:56.004100Z

@ps The URIs... as far as I remember , the public ones you have to construct yourself - the follow the same pattern as described here: https://docs.aws.amazon.com/general/latest/gr/s3.html For pre-signed, limited access urls (which are usually better solution than making objects public) you have to use the S3 SDK directly by using the GeneratePresignedUrlRequest class

zendevil 2021-01-21T11:59:45.001800Z

thanks @lukaszkorecki