无法从同一VPC中的EC2实例连接到DAX

时间:2019-10-22 14:40:44

标签: amazon-dynamodb-dax

我与DAX群集位于同一VPC中的EC2实例中。...群集的SG是默认设置(允许所有),但我仍然无法连接

这是一个简短的代码示例:

from amazondax import AmazonDaxClient

dax = AmazonDaxClient(
    endpoint_url="mycluster.i5cagb.clustercfg.dax.use1.cache.amazonaws.com:8111"
)

稍等片刻,我得到此错误:

Failed to configure cluster endpoints from 
[('mycluster.i5cagb.clustercfg.dax.use1.cache.amazonaws.com', 8111)]

我也尝试使用nc诊断:

$ nc -zv mycluster.i5cagb.clustercfg.dax.use1.cache.amazonaws.com 8111
Ncat: Version 7.50 ( https://nmap.org/ncat )
Ncat: Connection to 172.31.43.69 failed: Connection timed out.
Ncat: Trying next address...
Ncat: Connection to 172.31.58.224 failed: Connection timed out.
Ncat: Trying next address...
Ncat: Connection timed out.

1 个答案:

答案 0 :(得分:0)

正如@AbdelrahmanElhaddad在其评论中指出的那样,这最终成为安全组问题。