Fork me on GitHub
#aws
<
2023-04-02
>
vlad_poh13:04:03

Hi! I have been using an older s3 clojure library and I’m trying to switch to aws-api. I’m stuck on what to do with presigned urls. I see presigned urls are not supported. How does one go about serving secure images in a web app?

R.A. Porter14:04:43

I ended up using Java interop for presigned URLs.

vlad_poh15:04:26

Bummer guess I will have to use a lib that wraps the Java sdk instead

R.A. Porter15:04:09

It was the only thing I had to use interop for; I was able to do everything else with aws-api

vlad_poh15:04:53

I really want something light. clj-aws-s3 works well even though it’s deprecated. I tried s3mock with it but couldn’t provide a url which is why i thought i’d bite the bullet and switch to a lib that is actively maintained aws-api.

jjttjj16:04:20

Not quite a full solution but have you seen the discussion here: https://github.com/cognitect-labs/aws-api/issues/5 there's a linked gist there that might be useful https://gist.github.com/souenzzo/21f3e81b899ba3f04d5f8858b4ecc2e9

Jacob Emcken15:10:56

I created a library (initially for myself) which I successfully used with Babashka to create pre-signed GET URLs: https://github.com/jacobemcken/aws-simple-sign

👍 3