Skip to content
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

Add support for MFA, related to issue #58 #59

Merged
merged 1 commit into from
Oct 27, 2021

Conversation

ledor473
Copy link
Contributor

Fixes #58

When running the previous release:

$ ssm session --region us-east-1 --profile <REDACTED> --instance <REDACTED>
FATAL   Error when trying to create session:
AssumeRoleTokenProviderNotSetError: assume role with MFA enabled, but AssumeRoleTokenProvider session option not set.

When running with this PR:

$ ./ssm session --region us-east-1 --profile <REDACTED> --instance <REDACTED>
Assume Role MFA token code: <REDACTED>
INFO    Retrieved 10 usable instances.
       Instance ID          Region     Profile
? Showing 10/820 instances. Make a Selection:  [Use arrows to move, space to select, type to filter]

Copy link

@ncatelli ncatelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks for the contribution.

@ncatelli ncatelli merged commit a0c0299 into disneystreaming:develop Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AssumeRoleTokenProviderNotSetError
2 participants