0.0.3 • Published 4 years ago
aws-2fa-credential-updator v0.0.3
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 = philihpUsage
Run with npx
❯ npx aws-2fa-credential-updatorand you should see
⠋ Ask for 2FA token
◼ Get session from AWS
◼ Save AccessKeyId
◼ Save SecretAccessKey
◼ Save SessionToken
? Authenticator Token (philihp@226001234567)