aws-mfa

Utility for AWS services with MFA

Usage no npm install needed!

<script type="module">
  import awsMfa from 'https://cdn.skypack.dev/aws-mfa';
</script>

README

AWS-MFA

CLI tool for fetching (AWS) Multi-Factor Auth credentials

Install

npm install -g aws-mfa
touch .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