Are credentials auto updated for a session and client when using AWS_ROLE_ARN and AWS_WEB_IDENTITY_TOKEN_FILE #1119
Unanswered
mohitk1995
asked this question in
Q&A
Replies: 1 comment 5 replies
-
that code won't work, after you return the client it will be closed. but yes credentials should get auto updated like they do in botocore |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Are client/session re-authenticate automatically by the library? We currently use assumed role and authentication file, AWS_ROLE_ARN and AWS_WEB_IDENTITY_TOKEN_FILE env variables are being used. Does AioRefreshableCredentials automatically takes care of it or we need to explicitly create object of it? Is there a example that cold tell how this could be done similar to [https://stackoverflow.com/a/69226170](Example for RefreshableCredentials)?
I want to create a session and client and keep using it indefinitely. As I am not passing any authentication param explicitly would _refresh function be called automatically? If not what is the current interval when the credentials are refreshed automatically.
Sample functionality:
Q 2. Also we want to call four endpoints so do we need to create four sessions and clients? Or just using a single client should be enough?
Beta Was this translation helpful? Give feedback.
All reactions