trek10inc / awsume

A utility for easily assuming AWS IAM roles from the command line.
https://awsu.me
MIT License
488 stars 90 forks source link

Fixes #91: refresh role credentials sooner #94

Closed valdisrigdon closed 4 years ago

valdisrigdon commented 4 years ago

The check to refresh role credentials needs to take into account that they may expire within 60s so that we don't have a period of time where the role credentials have expired.

This also ensure that if we never sleep for a negative time as this leads to autoawsume exiting with a failure.

mbarneyjr commented 4 years ago

Hi @valdisrigdon !

Thanks for the PR!

Merging and deploying under 4.2.4