linux - AWS CLI : The config profile (example) could not be found

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

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

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

现在我得到找不到配置文件(示例)

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

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

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

我也试过重新安装 awscli

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

最佳答案

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

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

应该是

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

关于linux - AWS CLI : The config profile (example) could not be found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51729341/

相关文章:

linux - 挂载文件系统后,如何使用它?

c - 如何通知父进程我完成了

ios - 找不到 AmazonServiceException Unmarshaller.h 文件

无法在降级的 C 程序上运行 VLC

linux - 使用 sed 删除变量

macos - `Apache` `localhost/~username/` 不工作

objective-c - 如何扩展NSWindow的客户区?

python - Mac 上的 pip install 遇到版本错误

amazon-web-services - 在 AWS ECS : HardLimit cannot be empty 中设置 ulimit

amazon-web-services - aws-sdk 403 对 Quicksight API 的 CORS 预检选项请求错误