aws-2fa-credential-updator

0.0.3 • Public • Published

Quick script to update your [mfa] in ~/.aws/credentials

Setup

Either set these environment variables, or create a ~/.env file like .env.example

AWS_ACCOUNT_ID = 226001234567
AWS_USERNAME = philihp

Usage

Run with npx

❯ npx aws-2fa-credential-updator

and you should see

⠋ Ask for 2FA token
◼ Get session from AWS
◼ Save AccessKeyId
◼ Save SecretAccessKey
◼ Save SessionToken

? Authenticator Token (philihp@226001234567)

Readme

Keywords

none

Package Sidebar

Install

npm i aws-2fa-credential-updator

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

4.01 kB

Total Files

6

Last publish

Collaborators

  • philihp