aws

vlad_poh 2023-04-02T13:18:03.155619Z

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. Porter 2023-04-02T14:46:43.560179Z

I ended up using Java interop for presigned URLs.

Jacob Emcken 2023-10-07T15:47:56.975379Z

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
Caio Cascaes 2024-09-19T01:10:10.807199Z

Tak skal du have!

Jacob Emcken 2024-09-25T12:50:17.709169Z

You are welcome 😄

vlad_poh 2023-04-02T15:48:26.497479Z

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

R.A. Porter 2023-04-02T15:51:09.846999Z

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

vlad_poh 2023-04-02T15:56:53.688419Z

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.

2023-04-02T16:42:20.006359Z

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