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

Allow login with Multi Factor Auth (MFA) on the command line #22

Open
justhamade opened this issue Jan 14, 2020 · 1 comment
Open

Allow login with Multi Factor Auth (MFA) on the command line #22

justhamade opened this issue Jan 14, 2020 · 1 comment

Comments

@justhamade
Copy link

I am not able to use the command line tool because my account assumes a role and uses MFA.

It is possible to allow MFA like so

const token = '123456'
const profile = 'profile'
  const credentials = new AWS.SharedIniFileCredentials({
    profile,
    tokenCodeFn: (mfaSerial, done) => done(null, token),
  })
  AWS.config.credentials = credentials
@hauntingEcho
Copy link

MFA is working for me, by authenticating in the CLI and using --use-env-vars

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

No branches or pull requests

2 participants