Skip to content

sotoskprs/aws-cli-mfa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published