EC2 查询 DAX(DynamoDB 加速器

EC2 query DAX (DynamoDB Accelerator

有人可以帮帮我吗?我正在尝试从 EC2 查询 DAX 以查看它们在同一区域 (us-east-1)

时的速度
    aws dynamodb query --endpoint-url \
    http://mydax.abcd.clustercfg.dax.use1.cache.amazonaws.com:8111 \
    --table-name test_1.0 --key-condition-expression 
    ...

DAX安全组开放80/443/8111端口

我收到这个错误:

2018-09-12 12:43:59,678 - MainThread - botocore.endpoint - DEBUG - Exception received when sending HTTP request.

Traceback (most recent call last):

File "/home/ubuntu/.local/lib/python2.7/site-packages/botocore/endpoint.py", line 174, in _get_response

http_response = self._send(request)

File "/home/ubuntu/.local/lib/python2.7/site-packages/botocore/endpoint.py", line 218, in _send

return self.http_session.send(request)

File "/home/ubuntu/.local/lib/python2.7/site-packages/botocore/httpsession.py", line 260, in send

raise SSLError(endpoint_url=request.url, error=e)

SSLError: SSL validation failed for http://mydax.abcd.clustercfg.dax.use1.cache.amazonaws.com:8111/ EOF occurred in violation of protocol (_ssl.c:590)

有什么提示吗?

您不能使用 AWS DynamoDB CLI 连接到 DAX 集群。 DAX 使用不基于 http 的自定义二进制协议。 DAX 有自己的客户,您可以找到 here