aws

http://status.aws.amazon.com/ https://www.expeditedssl.com/aws-in-plain-english
dabrazhe 2021-04-23T18:23:57.043100Z

@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"))

kenny 2021-04-23T18:25:24.044Z

Not sure. I wrote up the thing I was hoping for 🙂 https://gist.github.com/kennyjwilli/c640f76845451cb145cedaee790d4f9a

dabrazhe 2021-04-23T18:30:48.044400Z

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

kenny 2021-04-23T18:37:43.045200Z

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