mfaws

0.0.3 • Public • Published

mfaws npm

Easy MFA access for AWS IAM Users for the AWS CLI.

Works with any AWS tool that reads from ~/.aws/credentials (e.g. SDKs, CDK, SAM, CodeCommit GRC).

Install

Install with NPM: npm i -g mfaws

Usage

Each example below assumes that you have run aws configure and have set an access key id and secret access key.

All mfaws commands can be run with the --profile flag to select a user profile.

Set credentials
$ mfaws set
? Enter your MFA Code: » 012345
 
Expiration: 5/4/2020, 9:18:29 AM
 
$ aws ... // This call is MFA authenticated
Restore original credentials
$ mfaws restore
 
$ aws ... // This call is not MFA authenticated

Package Sidebar

Install

npm i mfaws

Weekly Downloads

0

Version

0.0.3

License

ISC

Unpacked Size

33.4 kB

Total Files

16

Last publish

Collaborators

  • jkilpatrick15