Fork me on GitHub
#aws
<
2022-06-28
>
iamjarvo15:06:06

I have a repl with the where i am experimenting with aws-api it uses the default profile creds which expires. when the profile creds are renewed the code still uses the expired creds. i was reading through the docs and the code to figure out what i should be doing differently but havent come across anything. seems like cached-credentials-with-auto-refresh is called for profiles so i am assuming that the creds should auto refresh https://github.com/cognitect-labs/aws-api/blob/master/src/cognitect/aws/credentials.clj#L233

(def secretsmanager-client
  (aws/client
   {:api :secretsmanager
    :region "us-west-2"}))

lukasz15:06:39

I think it depends on the type of auth you're using - e.g. I had to implement our own to use AWS SSO creds, and that requires refresh