ChatterBot icon indicating copy to clipboard operation
ChatterBot copied to clipboard

MongoDB access question

Open edilson-silva opened this issue 6 years ago • 0 comments

I signed up for Amazon to do some testing and the only way to access the DB is through a .pem key file.

Is it possible to connect Chatterbot to an Amazon DocumentDB (MongoDB)?

Natively through PyMongo it is mandatory to indicate the connection URL with the .pem filename.

The .pem file must be in the same directory as the connection file.

Example:

import pymongo

client = pymongo.MongoClient ('mongodb://USER:[email protected]:27017/?ssl=true&ssl_ca_certs=rds-combined-ca-bundle.pem&replicaSet=rs0&readPreference=secondaryPreferred')

print (client.list_database_names ())

client.close ()

edilson-silva avatar Nov 01 '19 01:11 edilson-silva