assume-role
assume-role copied to clipboard
feat: Include session expiration as AWS_SESSION_EXPIRATION
A use case for this:
- Show expiration at bash prompt
Requirements:
- uprev aws-sdk-go to get ExpiresAt() call
Compilation will be made via Docker to maximize reproducibility. Dependencies will be managed via Go module.
Fixes #41.
I'd personally prefer if the expiration was exposed an an epoch value. Basically, I'm looking to be able to do math to decide if a refresh of the session token is needed before calling terraform apply
.
Hey @RobinNil let me know when this is ready for another review.
Just an FYI, internally at Remind we have switched a lot of our engineers from remind101/assume-role
to 99designs/aws-vault
(https://github.com/99designs/aws-vault)
CC @jherico