Skip to content

Add 2FA support#82

Open
ktails wants to merge 1 commit into
lucagrulla:masterfrom
ktails:master
Open

Add 2FA support#82
ktails wants to merge 1 commit into
lucagrulla:masterfrom
ktails:master

Conversation

@ktails

@ktails ktails commented Nov 29, 2019

Copy link
Copy Markdown

In re #47 , I have implement 2FA support by adding new Flag named mfa or m for short. It is boolean type, indicating either default profile or named profile provided via profile flag has MFA enabled.

Implementation sets Session Options field AssumeRoleTokenProvider with stscreds.StdinTokenProvider and also set duration for this session as 1 hour, the duration can be provided via user input with duration flag but for now it is hard coded. I can change that if needed.

Note: 2FA will only work here for IAM Role that have 2FA enabled.

@lucagrulla

Copy link
Copy Markdown
Owner

Thanks for this PR.
I'll try to review it over the coming days.

@lucagrulla lucagrulla mentioned this pull request Jan 2, 2020
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.

2 participants