@kenshi.io/aws-cli-mfa

1.0.1 • Public • Published

AWS CLI MFA Helper

This tool makes doing MFA on the terminal a bit easier when working with AWS CLI tools.

Installation

$ npm i -g @kenshi.io/aws-cli-mfa

Usage

Run the following command to do an MFA auth:

$ aws-mfa <user> [profile]

Replace <user> with the name of the user, and [profile] with your profile. Passing profile is not required.

This command then queries AWS for added MFA devices and asks you choose one if there are more than one devices attached to your account. Once done, the tool asks for your MFA code, if valid the tool writes your aws MFA credentials to a new profile which can be used with AWS CLI tools.

The name of the newly created profile will be ${profile}-mfa if a profile is passed, otherwise it will be just named mfa.

Example

$ aws-mfa john-doe acme
$ aws ecr get-login-password --profile acme-mfa | docker login ...

Readme

Keywords

none

Package Sidebar

Install

npm i @kenshi.io/aws-cli-mfa

Weekly Downloads

3

Version

1.0.1

License

Apache-2.0

Unpacked Size

5.32 kB

Total Files

4

Last publish

Collaborators

  • pouya-eghbali