assume-role
assume-role copied to clipboard
Session duration
Hi there,
I am using assume-role to persist an AWS role and keep from having to re-enter 2FA token for every command. It is working great! Thanks for this very useful tool!
How long does an assume-role session last, by default? Can that value be re-configured? Would be great to see a bit of info about that in the Readme.
I guess it doesn't do any session caching ...
default is one hour and can be adjusted with the duration argument.
eg :
-duration=8h
in aws iam you need to configure that the role can be assumed during 8 hours