trek10inc / awsume

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

Use existing session token if one exists #54

Closed janicujo closed 5 years ago

janicujo commented 5 years ago

Use an existing session_token from the source profile if one already exists.

Our specific use case is:

  1. An external tool (aws-azure-login) is used to gain a temporary session token to a master account
  2. awsume is used to switch between different roles in different accounts as permitted by the policies in the master account

This should help with https://github.com/trek10inc/awsume/issues/46 as well.

I have not had a chance to validate this change against other typical use-cases - YMMV.

mbarneyjr commented 5 years ago

56 was merged, so this functionality is now implemented

Thanks for the PR!