繁体   English   中英

AWS CLI无法检测〜/ .aws / credentials

[英]AWS CLI does not detect ~/.aws/credentials

这似乎是一个简单的任务,但是以某种方式失败了:AWS客户端看不到~/.aws/credentials指定的~/.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

可能是什么问题?

这些是非默认的凭据组,因此您必须像这样明确地选择它们:

$ aws --profile alter_ego configure list

$ aws --profile me configure list

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM