This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-20
Channels
- # aleph (1)
- # announcements (1)
- # aws (11)
- # babashka (117)
- # beginners (34)
- # calva (13)
- # cider (3)
- # clj-commons (8)
- # clj-kondo (24)
- # clj-yaml (36)
- # cljsrn (45)
- # clojure (50)
- # clojure-australia (5)
- # clojure-europe (239)
- # clojure-nl (3)
- # clojure-norway (3)
- # clojure-spec (16)
- # clojurescript (25)
- # core-typed (20)
- # cursive (41)
- # datahike (1)
- # datalevin (1)
- # datomic (17)
- # fulcro (27)
- # hyperfiddle (35)
- # introduce-yourself (1)
- # jobs (4)
- # lsp (20)
- # malli (8)
- # meander (8)
- # nbb (1)
- # off-topic (31)
- # parinfer (9)
- # pathom (3)
- # portal (2)
- # re-frame (20)
- # react (2)
- # reagent (8)
- # releases (1)
- # remote-jobs (4)
- # scittle (2)
- # shadow-cljs (8)
- # slack-help (4)
- # sql (30)
- # squint (3)
- # tools-deps (34)
- # xtdb (21)
Any idea how to get a full list of clients for the https://github.com/cognitect-labs/aws-api? e.g s3, cloudwatch, etc...
would it just be the deps.edn deps key "name"? com.cognitect.aws/logs -> logs -> (aws/client {:api :logs ...})
yes, that seems to be the case.
i'm guessing someone has built an aws cloudwatch client for clojure and i don't need to re-invent the wheel here... but it might be just as easy using clojures built in https://www.juxt.pro/blog/new-clojure-iteration function
@U0DJ4T5U1 do you mean the list of APIs? This library just uses the api descriptions from the js sdk. It is described here: https://github.com/cognitect-labs/aws-api#approach I don’t see cloudwatch in the list, but if you are making cloudwatch rules you can use the eventbridge api (aws renamed it)
ok so Cloudwatch is there @U0DJ4T5U1, check out :monitoring, :logs and others
@ULE3UT8Q5 Ty, yes i meant the list of apis. I was able to find cloudwatch, though as your comment suggests, there are a couple different takes on logs. I sort of want all the logs, So i can search them...
this is the cloudwatch api, it is just that cw is actually multiple services
I check it here, is that what you want? https://github.com/cognitect-labs/aws-api/blob/main/latest-releases.edn
@U0514DPR7 yep, the list of "api"'s you can pass as the :api key to aws/client seems to be (->> "latest-releases.edn" slurp edn/read-string keys (map name) (map keyword))
it's not obvious from the start thats the case though.
Would there be a wider interest in some examples of how to pull data from cloudwatch using aws-api? If so, I might try to clean up the code i write and make a small library and/or set of examples. I mostly foresee having to write some pagination code using the iteration function (as i mention in the thread above). Meanwhile, if you read this and happen to have done this already and want to share notes let me know 🙂