How to access aws config file from WSL (Windows subsystem for Linux)?
All you have to do is to set a couple of environment variables from the WSL shell. I am assuming that you are working with bash and Ubuntu.
export AWS_SHARED_CREDENTIALS_FILE=/mnt/c/Users/<your user name>/.aws/credentialsexport AWS_CONFIG_FILE=/mnt/c/Users/<your user name>/.aws/config
If you want to make the env variables sticky add the two lines to ~/.bashrcor /etc/bash.bashrc
remember to source /etc/bash.bashrc
or source ~/.bashrc
after editing them.
See documentation here complete list of env variables you can work with cli-environment