Skip to content

Can I use AWS DocumentDB instead of MongoDB? #652

Answered by denolfe
prove-ability asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @prove-ability, this error indicates that you are not passing the pem file contents into the Mongo options. You will need to have your .pem file locally and pass the contents into payload.init under mongoOptions. Here is an (untested) example:

const caContent = fs.readFileSync('/path/to/rds-combined-ca-bundle.pem');

payload.init({
  // ..
  mongoOptions: {
    sslCA: caContent,
  },
});

Let me know if that gets you any further.

Here are some links to SO issues that may be useful as well: link, link

Replies: 5 comments 9 replies

Comment options

You must be logged in to vote
5 replies
@prove-ability
Comment options

@x31b
Comment options

@jmikrut
Comment options

@x31b
Comment options

@denolfe
Comment options

Answer selected by prove-ability
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@DanRibbens
Comment options

@PukpikC
Comment options

@DanRibbens
Comment options

@PukpikC
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
9 participants