Skip to content

otarabai/aws-mfa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

aws-mfa

Authenticate AWS CLI with MFA device.

Setup

You need python 2.7 running on your machine. For convenience, you can create an alias in your .bashrc to the authentication script, to do that run the following inside this directory:

echo "alias awsmfa='python $PWD/awsmfa.py'" >> ~/.bashrc
source ~/.bashrc

Usage

Run awsmfa for the first time and follow the instructions toconfigure your AWS account(s). Later you can add new AWS accounts by running awsmfa --configure or awsmfa -c.

To authenticate, simply run awsmfa and follow the instructions. For non-interactive authentication, use awsmfa -a <account-name> <mfa-code> or just awsmfa <mfa-code> if you have only one AWS account configured.

TODO

  • Support py3
  • Support switching between already authenticated accounts

About

Authenticate AWS CLI with MFA device

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages