未findAWS CLIconfigurationconfiguration文件

我正在尝试login到AWS CLI,我首先使用此过程进行了configuration: http : //docs.aws.amazon.com/cli/latest/userguide/tutorial-ec2-ubuntu.html 。

然后,我运行导出AWS_DEFAULT_PROFILE=ken ,但是,然后我把我的帐号,而现在我得到的错误消息,即使我只是键入aws help

消息是:

 botocore.exceptions.ProfileNotFound: The config profile (148244104581) could not be found 

〜/ .aws /凭证:

 [default] aws_access_key_id = ************ LAMWPQ aws_secret_access_key = ***********GFX 

当你给一个configuration文件名称或更改默认的configuration文件名称,你有效地说'我想在我的信用文件中使用一个命名的configuration文件'。

所以你在这里做的是说'使用称为'肯'作为我的默认configuration文件,但你的默认configuration文件被称为'默认'而不是'肯'。

通常情况下,这种能力被用来具有“开发”或“prod”等configuration文件,我build议使开发“默认”,而不是刺激,以避免意外的事故。