I have created a mongoDB cluster in documentDB. I tried connecting to the cluster from my local machine through mongoclient from pymongo.
cluster endpoint=mongooi.cluster-abcdefghij.us-east-2.docdb.amazonaws.com
client=pymongo.Mongoclient("mongodb://USER:PASSWORD@mongooi.cluster-abcdefghij.us-east-2.docdb.amazonaws.com:27017/?ssl=true&ssl_ca_certs=rds-combined-ca-bundle.pem&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false*")
print(client.database_names())
I get ServerSelectionTimeoutError: mongooi.cluster-abcdefghij.us-east-2.docdb.amazonaws.com:27017: timed out