Using assume in powershell 7 with -no-cache doesn't fetch new session credentials #878
Unanswered
jasday
asked this question in
Issue Triage
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description
When using the
assumecommand in a powershell 7 terminal, it correctly retrieves credentials.When attempting to use this with the -no-cache command, I am greeted with the message
which is using the existing session, rather than a new one
This is using long-term access keys in ~/.aws/credentials, assuming a role in another account via an iam user that has the access keys.
Expected Behavior
The default session length for this role is 1 hour, so using no-cache should fetching new session tokens for the full hour.
Actual Behavior
Assume is not fetching new session tokens and is re-using old (although still active) ones.
Reproduction Steps
Granted Logs
Granted Version
OS Version Information
Windows 11
Minimal Granted & AWS Config Configuration
Additional Relevant Configuration
~/.aws/credentials:
I acknowledge that:
```) on separate lines.Beta Was this translation helpful? Give feedback.
All reactions