aws

http://status.aws.amazon.com/ https://www.expeditedssl.com/aws-in-plain-english
viesti 2020-12-10T08:14:58.198200Z

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

dabrazhe 2020-12-10T16:27:12.200500Z

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?

dabrazhe 2020-12-10T16:28:51.200900Z

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

alexmiller 2020-12-10T17:04:04.201100Z

did you check the doc string?

dabrazhe 2020-12-10T17:14:53.205200Z

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...

alexmiller 2020-12-10T17:15:33.206100Z

I see :endpoint-override in the doc string?

dabrazhe 2020-12-10T17:15:51.206400Z

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

alexmiller 2020-12-10T17:16:28.207Z

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

alexmiller 2020-12-10T17:21:05.209300Z

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