Questions tagged [aws-documentdb]

for general development and technical questions about Amazon DocumentDB with MongoDB compatible API.

For general development and technical questions about Amazon DocumentDB with MongoDB compatible API.

447 questions
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…
4
votes
1 answer

Does AWS DocumentDB Support Joining 3+ Collections In a Single Query?

Is it possible to join 3 separate collections together in AWS DocumentDB with a single query (similar to the solution to the thread here: How can I perform nested “joins” (joining 3 or more collections) in a MongoDB aggregation pipeline? I feel like…
Greg Thomas
  • 397
  • 3
  • 13
4
votes
5 answers

Unable to connect MongoDB Compass to AWS DocumentDB using SSH tunnel

I am new to mongoDB trying to setup tools for my new project. Most of my infrastructure run on AWS so i prefer to use AWS documentDB. I manage to connect to documentDB from EC2 both via mongo client or NodeJS aplication. but it would be good to…
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

AWS DocumentDB with spring boot fails Error : No server chosen by com.mongodb.client.internal.MongoClientDelegate

My application is written in spring boot and working fine with a self-managed MongoDB server. Now I am trying to connect my same spring boot application with AWS DocumentDB. I started a documentDB cluster and connecting with spring-boot with the…
Afsar edrisy
  • 1,985
  • 12
  • 28
4
votes
0 answers

MongoDB stage LIMIT_SKIP

I migrated from MongoDB to AWS DocumentDB and I'm having some issues with query performance. Running a profile I found several queries taking a laaaarge amount of time, far beyond a couple of seconds. I tried to understand with the doc what some of…
blanchma
  • 61
  • 3
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.
4
votes
0 answers

MongoDB error: "Cannot open a new cursor since too many cursors are already opened"

I got following error when I'm calling function mongoTemplate.collectionExists com.mongodb.MongoCommandException: Command failed with error 2: 'Cannot open a new cursor since too many cursors are already opened' on server…
was_777
  • 599
  • 1
  • 9
  • 28
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…
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
4
votes
1 answer

AWS DocumentDB through Proxy

I have an AWS DocumentDB set up that I can connect to just fine through my jump box using: mongo --ssl --host aws-host:27017 --sslCAFile rds-combined-ca-bundle.pem --username my_user --password I'd like to be able to connect to…
el n00b
  • 1,957
  • 7
  • 37
  • 64
4
votes
2 answers

Not able to connect to AWS DocumentDB from my ubuntu EC2 machine

I can't connect to my Amazon DocumentDB from my amazon EC2 ubuntu machine? I've checked the security of the Amazon DocumentDB and it's currently assigned to the default which has "all traffic". I've tried the following command, straight out of the…
James
  • 697
  • 4
  • 19
  • 24
3
votes
0 answers

MongoDB Compound Index Find then Sort Aggregation Efficiency

I have a large collection ~20m-30m documents that are indexed, but my aggregation performance is keeping up with the growing size. (Using DocumentDB which uses ~MongoDB 4.0). Basic schema (there are a number of other fields, but these are the…
canpan14
  • 1,181
  • 1
  • 14
  • 36
3
votes
2 answers

Does DocumentDB support mongo shell?

I am using AWS document db v4.0.0. It works fine with my application using MongoDB driver to connect. But when I try to use mongo shell it gives me some errors on basic query: db.myCollection.find({}) Error: error: { "ok" : 0, "code" : 303, …
Joey Yi Zhao
  • 37,514
  • 71
  • 268
  • 523
3
votes
1 answer

Cannot connect to aws documentdb ssl enabled cluster from mongo shell in ec2 which is in same vpc as of cluster

I am using following commands as aws suggests to download rds-combined-ca-bundle.pem file and to connect to cluster. wget https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem mongo --ssl --host…
1
2
3
29 30