这似乎是一项简单的任务,但不知何故失败了:亚马逊网络服务客户端看不到~/.aws/credentials中指定的凭据。该文件如下所示:
[me]
aws_access_key_id=xxxx
aws_secret_access_key=yyyyy
[alter_ego]
aws_access_key_id=xxxxx
aws_secret_access_key=yyyyy我在python3上使用awscli-1.11.128。当我运行aws configure list (使用或不使用sudo)时,我会得到:
Name Value Type Location
---- ----- ---- --------
profile <not set> None None
access_key <not set> None None
secret_key <not set> None None
region <not set> None None我尝试将AWS_CREDENTIAL_PROFILES_FILE设置为无效:
export AWS_CREDENTIAL_PROFILES_FILE=~/.aws/credentials可能出了什么问题?
发布于 2017-08-01 08:54:09
这些是非默认凭证组,因此您必须像这样显式选择它们:
$ aws --profile alter_ego configure list
$ aws --profile me configure list
https://stackoverflow.com/questions/45427332
复制相似问题