【问题标题】:AWS CLI: The config profile (example) could not be foundAWS CLI:找不到配置文件(示例)
【发布时间】:2018-08-07 14:32:37
【问题描述】:

我正在尝试使用 awscli 设置一个新的命名配置文件

我使用aws configure --profile example 设置了配置文件,但我将所有内容都保留为默认值

现在我收到The config profile (example) could not be found

我什至尝试使用以下内容创建和修改~\.aws\config 文件,但无济于事

[example]
region=eu-west-1
output=text

我尝试执行的任何命令都会导致上述错误

我也尝试重新安装 awscli

非常感谢您的帮助,谢谢!

【问题讨论】:

标签: linux macos amazon-web-services installation aws-cli


【解决方案1】:

如果您保留默认值,FWIR 将不会创建配置文件,因为默认值都是 NONE

您的格式对于手动创建配置文件配置不太正确。

应该是

[profile example]
region=eu-west-1
output=text

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-03-12
    • 1970-01-01
    • 1970-01-01
    • 2017-04-26
    • 1970-01-01
    • 2018-04-20
    • 1970-01-01
    • 2015-08-14
    相关资源
    最近更新 更多