Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/13.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
Amazon web services 无法使用aws cli连接到aws服务_Amazon Web Services_Aws Cli - Fatal编程技术网

Amazon web services 无法使用aws cli连接到aws服务

Amazon web services 无法使用aws cli连接到aws服务,amazon-web-services,aws-cli,Amazon Web Services,Aws Cli,我是aws新手,我正在尝试使用aws cli连接aws,因为我可以与命令行兼容,并且希望使用它来编写脚本以自动化流程 然而,我得到的错误如下: _ attempt_number, caught_exception) File "/usr/local/lib/python2.7/site-packages/botocore/retryhandler.py", line 359, in _check_caught_exception raise caught_exception

我是aws新手,我正在尝试使用aws cli连接aws,因为我可以与命令行兼容,并且希望使用它来编写脚本以自动化流程

然而,我得到的错误如下:

_
    attempt_number, caught_exception)
  File "/usr/local/lib/python2.7/site-packages/botocore/retryhandler.py", line 359, in _check_caught_exception
    raise caught_exception
EndpointConnectionError: Could not connect to the endpoint URL: "https://ec2.ap-southeast-1a.amazonaws.com/"
2017-07-08 20:30:52,763 - MainThread - awscli.clidriver - DEBUG - Exiting with rc 255

Could not connect to the endpoint URL: "https://ec2.ap-southeast-1a.amazonaws.com/"
我已经在配置文件中设置了配置文件用户

[profile joey2]
output = json
region = ap-southeast-1a
正确配置了api密钥和机密等凭据

有人能帮忙找出这个问题的原因吗。
非常感谢您的建议。

ap-southest-1a
不是有效的AWS地区,您需要使用
ap-southest-1
。您得到该连接错误是因为(您的输入区域正试图解析为)不存在。您可以通过验证

地区名称:亚太地区(新加坡)
地区:ap-Southwest-1
端点:ec2.ap-southerast-1.amazonaws.com

进一步阅读

@Van,解释一下
ap-Southast-1a
ap-Southast-1
区域内的可用区。AWS CLI将连接到连接到区域中所有可用性区域的区域终结点,因此您只需要输入区域名称。这是人们经常犯的错误。是的,这是一个非常开始的错误,我已经修复了它,现在它作为cham工作。它很容易迷路,因为它是ap-东南-1a,显示在AWS的“可用性区域”列中。