title: connection error while connecting to AWS DocumentDB
body: <p>getting the following error while connecting to AWS DocumentDB from node.js</p>
  
  <blockquote>
    <p>connection error: { [MongoNetworkError: connection 1 to
    docdb-2019-01-28-06-57-37.cluster-cqy6h2ypc0dj.us-east-1.docdb.amazonaws.com:27017
    timed out]   name: 'MongoNetworkError',   errorLabels: [
    'TransientTransactionError' ] }</p>
  </blockquote>
  
  <p>here is my node js file</p>
  
  <p><strong>app.js</strong></p>
  
  <pre><code>var mongoose = require('mongoose');
  mongoose.connect('mongodb://abhishek:abhishek@docdb-2019-01-28-06-57-37.cluster-cqy6h2ypc0dj.us-east-1.docdb.amazonaws.com:27017/?ssl_ca_certs=rds-combined-ca-bundle.pem&amp;replicaSet=rs0', {
      useNewUrlParser: true
  });
  var db = mongoose.connection;
  db.on('error', console.error.bind(console, 'connection error:'));
  db.once('open', function() {
      console.log("connected...");
  });
  </code></pre>