Connecting to Amazon DocumentDB


#1

Has anyone got Rocket.chat working with the new AWS DocumentDB?

Whenever I start rocket i end up getting a time out. I have tested connections from the instance i am testing with mongo client to the DocumentDB and it works fine. I did have to download the rds-combined-ca-bundle.pem file when testing using the mongo command. I am unsure where this file would go for the service. I have not been able to find an example using ssl_ca_cert in the mongo documentation.

Has anyone gotten this to work?
Thanks

The connection string they provide looks like this:

mongodb://rootuser:@documentdb-test.cluster-ct4ewrji7b5c.us-east-1.docdb.amazonaws.com:27017/?ssl_ca_certs=rds-combined-ca-bundle.pem&replicaSet=rs0


#2

have to add ssl=true to the string and point ssl_ca_certs in the string to the location of the ca file you downloaded. Though you’ll find once you can connect, you’ll have sorts of new problems. Alternatively you can turn off ssl in the documentDB parameter groups for your learning


#3

Big thing here is documentdb is not MongoDB.

I don’t think it supports oplog for one. Two it doesn’t even implement all commands.

Here is a good read for you: