Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

fix MFA auth #257

Merged
merged 1 commit into from
Aug 31, 2018
Merged

fix MFA auth #257

merged 1 commit into from
Aug 31, 2018

Conversation

svenwltr
Copy link
Member

Fixes #252

This fixes MFA auth by adding AssumeRoleTokenProvider to the session options.

Since aws-nuke created a new session for each region and two for initialization, it asked quite often for the MFA token. Furthermore it looks like it does not allow to use the same token twice, which means one has to wait a minute between each session creation.

Fortunately is is possible to copy a session and change some parameters. So I refactored it that we have a singe root session, which gets copied and adjusted for each region.

@rebuy-de/prp-aws-nuke Please review.

@svenwltr svenwltr added the kind/bug Something isn't working label Aug 31, 2018
@svenwltr svenwltr self-assigned this Aug 31, 2018
@svenwltr svenwltr merged commit c9e5b68 into master Aug 31, 2018
@svenwltr svenwltr deleted the fix-mfa branch August 31, 2018 15:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue running with shared credentials assuming a role with MFA set
3 participants