Connect Document DB to Mup JS


Please help, I want to connect to the Document Db connected over AWS,

For this, I need to connect the Database of the Meteor App to the cluster first

But I am using the following code, but not able to connect

Meteor.startup(function () {
  var url = process.env.MONGO_URL;

//Specify the Amazon DocumentDB cert
var ca = [Assets.getText("rds-combined-ca-bundle.pem")];

  var url =

MongoDB.connect(url, { 
  sslValidate: true,
  useNewUrlParser: true
}, function(err, db) {
    if (err) {
      throw err;
    db.collectionNames(function(err, items) {
      if (err)  {
        throw err;

Not sure what the issue and they way I am using the pem file is the right way or not, or Is there any other method then please help

I am facing similar issue. Did you solve it?

Not using Mup, But creating Manually docker image can solve this