mcohen01 / amazonica

A comprehensive Clojure client for the entire Amazon AWS api.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support custom config and credentials location

ChrisLane opened this issue · comments

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.

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.

Thanks for giving a solution!