AWS:找不到配置文件(MyName)
问题描述:
每次我想使用AWS进行配置时,都会出现以下错误:
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
like : aws configure
我正在使用Python 3.4,并且想使用AWS CLI密钥环来加密我的凭证.
I'm using Python 3.4 and I want to use AWS CLI Keyring to encrypt my credentials..
答
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:
-
编辑
~/.aws/config
或
aws configure --profile "your username"