AWS : The config profile (MyName) could not be found

Steve Ritz picture Steve Ritz · Dec 7, 2015 · Viewed 90.3k times · Source

Every time I want to config something with AWS I get the following error :

"The config profile (myname) could not be found"

like : aws configure

I'm using Python 3.4 and I want to use AWS CLI Keyring to encrypt my credentials..

Answer

Stanley Yong picture Stanley Yong · Oct 13, 2016

I think there is something missing from the AWS documentation in http://docs.aws.amazon.com/lambda/latest/dg/setup-awscli.html, it did not mention that you should edit the file ~/.aws/config to add your username profile. There are two ways to do this:

  1. edit ~/.aws/config or

  2. aws configure --profile "your username"