broamski / aws-mfa

Manage AWS MFA Security Credentials
MIT License
1.02k stars 165 forks source link

Use aws credentials path if available #70

Open hsbgowd opened 2 years ago

hsbgowd commented 2 years ago

aws-mfa is hardcoding the credentials file path to ~ but as per the AWS documentation, it has to be fetched from AWS_SHARED_CREDENTIALS_FILE if it is available.

Refer: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html