Get session token in aws cli using MFA.
Install libraries below:
When running the command below, it will create a file ~/.aws/credentials.
$ aws configure
CONFIG_FILE="$HOME/.aws/credentials"
EMAIL='{email}'
PROFILE='{profile}' # prevdefault
IAM_NUMBER='{iam_number}'
$ sudo chmod +x ./aws-mfa.sh
$ ./aws-mfa.sh