-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support MFA device for cross account role switching #100
Conversation
…entials between API calls as MFA Token cannot be used more than once.
Current coverage is
|
@pdecat Please accept my most sincere apologies; it seems like I never got the notification for this. The only Travis failure was a minor formatting issue in one of the doc strings, and coverage is complete. I'll look this over tonight or tomorrow and get it merged. I'm hoping to have a patch-level release out within the next few days. |
@@ -83,6 +83,12 @@ def __init__(self, warning_threshold=80, critical_threshold=99, | |||
com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html>`_ | |||
string to use when assuming a role via STS. | |||
:type external_id: str | |||
:param mfa_serial_number: (optional) the `MFA Serial Number` string to_ | |||
use when assuming a role via STS. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The continuation line here and on line 89 needs to be indented two spaces. That's why the Travis doc test is failing.
It looks like there are a few more places that have indentation issues causing the docs build to fail. Also, there should probably be something added to the documentation about this - I'd really like to see it in the "Credentials" section of the "Getting Started" page. Since these are such trivial changes, I'll leave it up to you whether you want to fix them, or just want me to pull this in to my own branch and clean it up a bit. I've never used MFA with STS before, so I'm going to need to just take your word that this works... |
Ok, thanks! I'll merge this and have a release out tonight or early tomorrow morning (GMT-5) |
You're welcome. I'll try to find some time to add this to the Credentials section. |
@pdecat don't worry about it, I'll add the docs after merging. Thanks so much for contributing this! |
Support MFA device for cross account role switching
@pdecat this has been released as 0.2.3 and is now live on pypi. Thanks again so much for the contribution! |
Support MFA device for cross account role switching, reusing STS credentials between API calls as MFA Token cannot be used more than once.
This introduces two new optional command line arguments: