AWS CLI 和 ECS 查询 - HTTPSConnectionPool 443 错误;超过最大重试次数;节点名称或服务名称已提供,或未知

AWS CLI and ECS query - HTTPSConnectionPool 443 error; Max retries exceeded; nodename nor servname provided, or not known

aws ecs cli 遇到一些问题。

发现一些建议,认为此错误消息可能与区域有关,但如您所见,该区域已在我的配置中设置,并且如果我将选项“--region eu-west-1”添加到 cli我仍然收到同样的错误。

$ aws --version
> aws-cli/1.7.5 Python/2.7.9 Darwin/14.0.0

$ aws configure list

  Name                    Value             Type    Location
  ----                    -----             ----    --------
  profile                <not set>             None    None
  access_key     ******************** shared-credentials-file
  secret_key     ******************** shared-credentials-file
  region                eu-west-1      config-file    ~/.aws/config

$ aws ecs list-clusters
> HTTPSConnectionPool(host='ecs.eu-west-1.amazonaws.com', port=443): Max retries exceeded with url: / (Caused by : [Errno 8] nodename nor servname provided, or not known)

值得注意的是 ec2 命令运行良好:

$ aws ec2 describe-instances
{"Reservations": []}

Amazon EC2 容器服务目前仅在 us-east-1 可用。来自:http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_GetStarted.html

Customers accessing Amazon ECS during the preview should use the US East (N. Virginia) region.