For questions about Amazon's DocumentDB with MongoDB compatible databases.
Questions tagged [aws-documentdb-mongoapi]
109 questions
102
votes
1 answer
Difference between AWS DynamoDB vs. AWS DocumentDB(Newly launched service)?
AWS recently launched new service DocumentDB similar to MongoDB interface.
What is the difference between AWS DynamoDB vs. DocumentDB services?

Ajay yadav
- 4,141
- 4
- 31
- 40
19
votes
2 answers
Unable to connect to AWS Documentdb using MongoDB Compass. No option to pass sslInvalidHostName
AWS DocumentDB is a relatively new service we're trying to migrate to. To connect from outside of the VPC, you have to create a tunnel to an existing instance.
For example:
ssh -i "ec2Access.pem" -L…

Bhavik Shah
- 315
- 1
- 2
- 7
16
votes
7 answers
Attaching AWS documentDB to Spring Boot application
I've recently tried using the new AWS DocumentDB service as my DB in a Spring application.
The cluster has been created in the same VPC as the EKS on which I deploy my application. Security groups allow connections between all nodes in the VPC.…

TheFooBarWay
- 594
- 1
- 7
- 17
14
votes
4 answers
AWS DocumentDB with Robo 3T (Robomongo)
I want to connect Robo 3T (formerly robomongo) from my Mac laptop with AWS's DocumentDB. I followed numerous tutorials however could not find any specific to DocumentDB.
During the testing phase it passes step #1 "connected to my EC2 instance",…

mediastream
- 253
- 3
- 8
9
votes
6 answers
Cannot Connect to AWS Database using TLS with Server CA Validation
AWS documentation states that to connect to my DocumentDB Cluster, I need to use a query string that ends like so ?ssl_ca_certs=rds-combined-ca-bundle.pem&replicaSet=rs0. It is a root certificate chain that my Client should validate. I should not…

David Gourde
- 3,709
- 2
- 31
- 65
8
votes
2 answers
Connecting to DocumentDB using SSL with the MongoDB C# driver
I have an AWS DocumentDB Cluster using TLS. I want to connect to it from my .net core application in C#, using the C# MongoDB Driver.
The connection-string given by AWS includes this part ?ssl_ca_certs=rds-combined-ca-bundle.pem, which is the…

David Gourde
- 3,709
- 2
- 31
- 65
7
votes
2 answers
Change Streams with Amazon DocumentDB
I am setting up a microservice which needs to react on changes of a Amazon DocumentDB. When working with MongoDB I would use Reactive Change Streams for that. If I do this with the DocumentDB I get an exception when registering the change listener…

SebastianK
- 712
- 4
- 19
5
votes
0 answers
AWS OpenSearch Service connection with MongoDB
Is there any way we can connect AWS OpenSearch with MongoDB without using DocumentDb? I have an application based on Nest.js and ReactJs where I want to use OpenSearch Service

Ammar Ijaz
- 105
- 1
- 1
- 6
5
votes
1 answer
Alternative to schema validation in AWS DocumentDB
I am moving my database in MongoDB to AWS DocumentDB. I am using mongodb-driver (version 3.6.4) in Java to write and read the data, as well as to configure the collections I use. In particular, I have a schema validation (written as a JSON Schema)…

AugSB
- 249
- 1
- 5
- 16
5
votes
2 answers
Unable to determine Mongoose SSL connection error to DocumentDB
I have 2 environments in AWS Elastic Beanstalk (EB) running a Node.js application connecting to DocumentDB utilizing the Mongoose framework. One of the environments inexplicably stopped working while the other is working fine. Both are deployed from…

steve dunning
- 153
- 2
- 11
4
votes
1 answer
"MongoServerSelectionError: connection to xxx.xx.xx.xxx:27017 closed
I am using AWS DocumentDB as my database in my application which is developed in node.js which is MongoDB compatible. I have used MongoClient to connect to my database. My application executes but it makes approx 1000 DB connections for each…

acloudDeveloper
- 81
- 4
4
votes
2 answers
How to replace $$ROOT for group in AWS DocumentDB - Feature not supported: $$ROOT
I have a Node app interacting with a Mongo database. When running on the old setup or locally on MongoDB 4.4.0
When I deploy to AWS Document DB 3.6.0 and try to run a query with the below $group clause, I get an error that Feature not supported:…

Joshua Ohana
- 5,613
- 12
- 56
- 112
4
votes
1 answer
Where do I get exact used storage for DocuementDB cluster
I have created one DocumentDB cluster in AWS with two instance running in it, but I need to know the exact storage which will be used for storing the data and also how AWS charge for one cluster.

Gaurav Takte
- 607
- 5
- 22
4
votes
1 answer
AWS-DocumentDB not supported $lookup operator, any Alternative of $lookup in AWS-DocumentDB
DocumentDB is not supporting the "$lookup" operator, Any other Alternative of $lookup(MongoDB) in DocumentDB.
Here is the list of DocumentDB supported…

Bhanwarlal Chaudhary
- 402
- 6
- 20
4
votes
4 answers
How to use AWS Document DB with Ruby On Rails? Compatibility with version 3.6?
recently AWS implemented compatibility with MongoDB version 3.6
via DocumentDB.
Document DB requires a certificate that can be downloaded at:
https://s3-us-gov-west-1.amazonaws.com/rds-downloads/rds-GovCloud-Root-CA-2017.pem
Using a configuration…

ipegasus
- 14,796
- 9
- 52
- 76