current status:
I have created a documentdb cluster. added an inbound rule for the security group to allow all traffic from anywhere. disabled TLS for the cluster
tried connecting to the db following this https://docs.aws.amazon.com/documentdb/latest/developerguide/connect_programmatically.html
but throws following error:
(node:45892) UnhandledPromiseRejectionWarning: MongoNetworkError: failed to connect to server [aacb-c1.cluster-c3ggyumy9pd2.us-east-2.docdb.amazonaws.com:27017] on first connect [MongoNetworkTimeoutError: connection timed out