This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-10
Channels
- # adventofcode (174)
- # announcements (5)
- # aws (9)
- # babashka (17)
- # beginners (259)
- # boot-dev (1)
- # calva (6)
- # cider (19)
- # circleci (7)
- # clj-kondo (9)
- # cljfx (51)
- # cljs-dev (4)
- # clojure (83)
- # clojure-australia (2)
- # clojure-dev (9)
- # clojure-europe (78)
- # clojure-nl (3)
- # clojure-spec (4)
- # clojure-switzerland (1)
- # clojure-uk (18)
- # clojurescript (22)
- # conjure (17)
- # cursive (17)
- # data-science (1)
- # datomic (15)
- # defnpodcast (1)
- # events (2)
- # fulcro (39)
- # graalvm (16)
- # graphql (1)
- # kaocha (5)
- # lambdaisland (11)
- # malli (6)
- # meander (1)
- # off-topic (26)
- # pathom (10)
- # re-frame (10)
- # reitit (6)
- # rewrite-clj (7)
- # sci (3)
- # shadow-cljs (28)
- # sql (12)
- # test-check (10)
- # tools-deps (31)
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?
(def kvmedia (aws/client {:api :kinesis-video-media :endpoint kvs-endpoint :credentials-provider (cred/profile-credentials-provider "devpl")}))
did you check the doc string?
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...
I see :endpoint-override in the doc string?
Does this mean there's a fault my client config, or aws/invoke or is it a bug in aws-cli? 🙂
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
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