Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mongoku + DocumentDB #79

Open
tbjornli opened this issue May 9, 2022 · 1 comment
Open

Mongoku + DocumentDB #79

tbjornli opened this issue May 9, 2022 · 1 comment

Comments

@tbjornli
Copy link

tbjornli commented May 9, 2022

Have anyone been able to use Mongoku with DocumentDB?

I have tried to use the url provided to me by AWS which looks more or less like this:

mongodb://username:password@url.to.docdb.amazonaws.com:27017/?ssl=true&ssl_ca_certs=rds-combined-ca-bundle.pem&retryWrites=false

but I'm getting this error

failed to connect to server [server] on first connect [
  Error: unable to get local issuer certificate at TLSSocket.onConnectSecure (_tls_wrap.js:1515:34) at TLSSocket.emit (events.js:400:28) at TLSSocket._finishInit (_tls_wrap.js:937:8) at TLSWrap.ssl.onhandshakedone (_tls.wrap.js:709:12) 
{ name: 'MongoNetworkError'}]

I have tried to download the rds-combined-ca-bundle.pem and place it in node_modules/mongoku/dist/ and node_modules/mongoku/dist/config/ folder without any luck.

Any ideas?

Also the documentation says that it is possible to define some configuration environment variables. Is it possible to set these in a specific file?

@saibimajdi
Copy link

I'm using DocumentDB and only this connection string format works for me.
username:password@url.to.docdb.amazonaws.com:27017 without any additional parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants