Fork me on GitHub
#aws
<
2020-12-10
>
viesti08:12:58

it's a bit funny that there are so many sources of AWS API descriptions :D

dabrazhe16:12:12

Regarding the Cognitect aws-api. I need to pass https://docs.aws.amazon.com/cli/latest/reference/, to an aws client. Can use the :endpoint keyword?

dabrazhe16:12:51

(def kvmedia (aws/client {:api :kinesis-video-media :endpoint kvs-endpoint :credentials-provider (cred/profile-credentials-provider "devpl")}))

Alex Miller (Clojure team)17:12:04

did you check the doc string?

dabrazhe17:12:53

yes: ) endpoint it's not described in the doc string. The reason I am asking: I can successfully execute the call to kinesis-video-media with aws-CLI from the terminal. But the aws/invoke gives me headaches; I am getting an error which makes not much sense to me.

{:cognitect.anomalies/category :cognitect.anomalies/fault,
 :cognitect.aws.client/throwable
   #error
    {:cause "JSON error (unexpected character): <",
     :trace...

Alex Miller (Clojure team)17:12:33

I see :endpoint-override in the doc string?

dabrazhe17:12:51

Does this mean there's a fault my client config, or aws/invoke or is it a bug in aws-cli? 🙂

Alex Miller (Clojure team)17:12:28

it sounds to me like you're invoking the client with options that aren't documented and maybe don't exist, so without knowing more that sounds like an error in your code

Alex Miller (Clojure team)17:12:05

I believe :endpoint as a key there is deprecated (which is why it's not doc'ed) and :endpoint-override is the documented support for this