Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux AWS CLI:找不到配置配置文件(示例)_Linux_Macos_Amazon Web Services_Installation_Aws Cli - Fatal编程技术网

Linux AWS CLI:找不到配置配置文件(示例)

Linux AWS CLI:找不到配置配置文件(示例),linux,macos,amazon-web-services,installation,aws-cli,Linux,Macos,Amazon Web Services,Installation,Aws Cli,我正在尝试使用awscli设置一个新的命名配置文件 我使用了aws configure--profile example来设置概要文件,但我将所有内容都保留为默认设置 现在我得到的配置文件(示例)无法找到 我甚至试着用下面的代码创建和修改~\.aws\config文件,但是没有用 [example] region=eu-west-1 output=text 我尝试执行的任何命令都将导致上述错误 我还尝试重新安装awscli 非常感谢您的帮助,谢谢 FWIR如果保留默认值,则不会创建配置文件,因

我正在尝试使用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

Stack Overflow是一个关于编程和开发问题的网站。这个问题似乎离题了,因为它与编程或开发无关。请参见帮助中心中的。也许或者会是一个更好的询问的地方。检查用户和配置和凭据文件的权限:
ls-la.aws