aws-cli-mfa

1.3.5 • Public • Published

npm npm Platforms supported

aws-cli-mfa

MFA authentication for aws-cli

Features

  • Get temporary credentials to use aws-cli
  • Cross platform

Prerequisites

  • Node and NPM installed
  • AWS cli installed

Usage

Get started

$ npm i -g aws-cli-mfa

Run the configuration script (one time)

$ aws-mfa-conf --profile awsprofile --mfa arn:aws:iam::000000000000:mfa/account

You will get the the json configuration as a response

$ aws-mfa-conf --profile awsprofile --mfa arn:aws:iam::000000000000:mfa/account
{
  "profile": "awsprofile",
  "mfa_device_arn": "arn:aws:iam::000000000000:mfa/account"
}
awc-cli-mfa configured! Ready to use.

From now on, you can use aws-mfa with the saved configuration

Run MFA script

$ aws-mfa

Enter the generated mfa code from the virtual device

$ aws-mfa
MFA code: 123456

You 're now authorized to use aws-cli!

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i aws-cli-mfa

    Weekly Downloads

    3

    Version

    1.3.5

    License

    ISC

    Unpacked Size

    6.39 kB

    Total Files

    7

    Last publish

    Collaborators

    • sotoskip