Support custom config and credentials location
ChrisLane opened this issue · comments
Chris Lane commented
It would be useful if this project supported the AWS_SHARED_CREDENTIALS_FILE
and AWS_CONFIG_FILE
environment variables, allowing for custom locations of credentials and config files to be used.
The environment variables are documented here.
I personally prefer to keep my aws dotfiles in the ~/.config/aws/
directory.
Michael Cohen commented
i think you can set env var AWS_CREDENTIAL_PROFILES_FILE
to point at your custom aws config file and pass a credentials map with the profile name in the :profile
key.
Chris Lane commented
Thanks for giving a solution!