无法为我们连接到Amazon

2024-04-20 02:20:53 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试设置我的EBS卷的自动快照,为此我设置了Amazon Cli工具,但是当我尝试这些工具时,出现以下错误:

HTTPSConnectionPool(host='ec2.us-west-2a.amazonaws.com', port=443): Max retries exceeded with url: / (Caused by <class 'socket.gaierror'>: [Errno -2] Name or service not known)

我做了telnet ec2.us-west-2a.amazonaws.com 443同样的事情:

telnet: could not resolve ec2.us-west-2a.amazonaws.com/443: Name or service not known

这是我的aws --version的输出:

aws-cli/1.7.4 Python/2.7.6 Linux/3.13.0-29-generic

Tags: or工具namecomawsservicenotec2
1条回答
网友
1楼 · 发布于 2024-04-20 02:20:53

检查CLI的Region设置。你知道吗

似乎该区域被错误地设置为us-west-2a,这是一个可用区域。区域名称应为us-west-2。你知道吗

这可以用aws configure命令更改。你知道吗

相关问题 更多 >