ChatterBot
ChatterBot copied to clipboard
MongoDB access question
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 ()