Fork me on GitHub
#aws
<
2019-01-01
>
kaffein21:01:03

hey guys!!!

kaffein21:01:34

not sure whether someone has already played with the aws-api but I have a question related to the client configuration please!!

kaffein21:01:56

while trying to configure an s3 client (based on the example on github), it seems that at some point, the lib is trying to look for a service description (an edn file according to the code)

kaffein21:01:37

Here it is from cognitect.aws.client.api

kaffein21:01:29

And here is the function implementation

kaffein21:01:30

the read-service-description function seems to be pointing to a file whose name is (str base-resource-path "/" service-name "/service.edn")

kaffein21:01:57

so for s3, it should be something like blabla/s3/service.edn ...though I couldn’t find any such file in the codebase

kaffein21:01:15

does anyone know where i’m missing something please 😉

Alex Miller (Clojure team)22:01:00

Using one of the services requires three libs - the api, the endpoints, and the service

Alex Miller (Clojure team)22:01:42

Sounds to me like you have the first one but are missing one or both of the latter

kaffein22:01:43

these 3 right ? [com.cognitect.aws/api “0.8.166”] [com.cognitect.aws/endpoints “1.1.11.475"] [com.cognitect.aws/s3 “680.2.370.0”]

kaffein22:01:52

I have them but somehow I have this weird behaviour, I will review my configuration first then 😉 I may have made a mistake

Alex Miller (Clojure team)22:01:16

Those files that it’s trying to look up are in those jars

👍 5
Alex Miller (Clojure team)22:01:52

I assume that you’re using lein from your dep definition

kaffein22:01:07

I do indeed

kaffein22:01:50

but is shouldn’t be a problem whether I use deps or lein right ?

Alex Miller (Clojure team)22:01:55

Might be helpful to drop the code

kaffein22:01:32

good idea, I will ...give me a sec 😉

kaffein22:01:20

Here it is

kaffein22:01:40

oh jesus 😨

kaffein22:01:22

do I have to require something else by the way ?