我是aws的新手,我试图使用aws连接aws,因为我可以使用命令行来控制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密钥和机密)被正确配置。
有人能帮忙找出这个问题的原因吗?非常感谢你的建议?
发布于 2017-07-08 12:49:07
ap-southeast-1a不是一个有效的AWS区域,您需要使用ap-southeast-1。您将得到该连接错误,因为https://ec2.ap-southeast-1a.amazonaws.com/ (这是您的输入区域试图解析的内容)不存在。您可以通过EC2区域文档验证这一点。
区域名称:亚太(新加坡)
地区:ap-东南-1
端点:ec2.ap-东南-1.amazonaws.com
进一步阅读
https://stackoverflow.com/questions/44986296
复制相似问题