我的docdb和ec2实例位于同一区域中的同一VPC上。 我的docdb安全组允许所有入站流量,我的EC2安全组允许任何RDP
我已经按照https://docs.aws.amazon.com/documentdb/latest/developerguide/troubleshooting.html
的所有问题排查步骤进行操作,但我仍然无法连接。 我正在使用Windows EC2
我得到的错误:
mongo --ssl --host URL:27017 --sslCAFile rds-combined-ca-bundle.pem --username username --password password
MongoDB shell version v3.6.13
connecting to: mongodb://URL:27017/?gssapiServiceName=mongodb
2019-06-27T15:31:02.086+0000 W NETWORK [thread1] Failed to connect to IP:27017 after 5000ms milliseconds, giving up.
2019-06-27T15:31:02.088+0000 E QUERY [thread1] Error: couldn't connect to server URL:27017, connection attempt failed :
connect@src/mongo/shell/mongo.js:263:13
@(connect):1:6
exception: connect failed