assume-role icon indicating copy to clipboard operation
assume-role copied to clipboard

Session duration

Open chmreid opened this issue 5 years ago • 2 comments

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.

chmreid avatar Jan 24 '20 22:01 chmreid

I guess it doesn't do any session caching ...

Constantin07 avatar Jan 25 '20 09:01 Constantin07

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

lepirlouit avatar May 11 '20 11:05 lepirlouit