AWS-MFA
CLI tool for fetching (AWS) Multi-Factor Auth credentials
Install
npm install -g aws-mfatouch .aws-mfa
Populate .aws-mfa
file with AWS credentials
AWS_ACCESS_KEY_ID=ZZZZZZZZZZ
AWS_SECRET_ACCESS_KEY=xyZxyZxyZxyZxyZxyZ
MFA_ARN=arn:aws:iam::999999999999:mfa/username
Usage
aws-mfa <6 digit TokenCode>
This will output the file aws_session.json