This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-23
Channels
- # announcements (5)
- # aws (4)
- # babashka (141)
- # beginners (139)
- # calva (35)
- # cider (5)
- # clj-kondo (27)
- # cljsrn (20)
- # clojure (37)
- # clojure-czech (5)
- # clojure-dev (26)
- # clojure-europe (11)
- # clojure-germany (1)
- # clojure-italy (1)
- # clojure-nl (3)
- # clojure-spec (17)
- # clojure-uk (16)
- # clojurescript (2)
- # conjure (1)
- # cursive (6)
- # datomic (20)
- # defnpodcast (1)
- # emacs (15)
- # fulcro (26)
- # honeysql (2)
- # instaparse (3)
- # jackdaw (4)
- # jobs (2)
- # lsp (70)
- # luminus (2)
- # meander (16)
- # missionary (2)
- # other-languages (151)
- # pathom (6)
- # portkey (13)
- # re-frame (13)
- # reagent (2)
- # reitit (43)
- # releases (1)
- # remote-jobs (1)
- # reveal (5)
- # rum (2)
- # sci (15)
- # shadow-cljs (37)
- # spacemacs (4)
- # tools-deps (8)
- # vim (20)
@kenny I managed to assume role based on the source profile defined in the aws credentials file. Is it smth you are looking for ?
(def cred-provider (assumed-role-credentials-provider "devprofile2" "arn:aws:iam::61823312345:role/SysAdmin"))
Not sure. I wrote up the thing I was hoping for 🙂 https://gist.github.com/kennyjwilli/c640f76845451cb145cedaee790d4f9a
That's lots of text : ) , cant go through it now. In short, there are examples here how to assume the IAM role, have a look at (defn assumed-role-credentials-provider [role-arn]
https://github.com/cognitect-labs/aws-api/blob/master/examples/assume_role_example.clj
Right. That’s the first part. The above implements the flow described here https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-role.html