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
3
votes
0 answers

Client network socket disconnected before secure TLS connection was established(while trying to connect DocumentDB using Node.JS)

I am working on a requirement where I am using AWS DocumentDB as database and using NodeJS as programming language in backend application and deploying the setup on AWS ECS Fargate. When I configure backend APIs in front end app and executes the…
3
votes
2 answers

MongoDB index grows on update

We are using AWS DocumentDB v3.6.0. We want to use MongoDB TTL index functionality to remove items after a period of time. Items are frequently updated until a special event occurs. Therefore we need to update the ttl field…
Baumjamin
  • 31
  • 2
3
votes
1 answer

AWS DocumentDB Syntax differs from MongoDB for UpdateMany

I'm attempting to perform an update using a substr after migrating from mongo > documentDB, however I am getting a strange error. The following works on Mongo 4.0 using pymongo: await db[cls.colname].update_many( {'$or':…
ABroz
  • 33
  • 4
3
votes
0 answers

What is the best practice for multi-tenancy with AWS document DB and AWS managed workflows

What is the best practice for multi-tenancy with AWS document DB and AWS managed workflows? Different VPCs with vpc peering: Is it better to create one cluster for several tenants and separate tenants with Role-Based Access Control? So the…
Maria Dorohin
  • 355
  • 4
  • 17
3
votes
2 answers

DocumentDB 3.6 version's expected support plan

AWS DocumentDB is “MongoDB compatible” means that version 3.6 and 4.0 APIs are supported. I have restored data in 3.6 version and saved as snapshots. I will like to know for how long AWS is going to support 3.6 version. If in case AWS decides to…
shantanuo
  • 31,689
  • 78
  • 245
  • 403
3
votes
1 answer

Connecting to DocumentDB from AWS Lambda using Python

I am trying to connect to DocumentDB from a Lambda function. I have configured my DocumentDB as per this tutorial and can access it through the cloud9 command prompt. The documentDB cluster is part of two security groups. The first security group is…
WK123
  • 620
  • 7
  • 18
3
votes
1 answer

$text search is not supported aws mongodb

I want to do a text search based on weightage. So used below mongo query Query: db.stores.find( { $text: { $search: ""coffee shop"" } } ) This query works for MongoDB but, aws documentDB is not supporting $text search. Is there any alternate way to…
Umang Soni
  • 521
  • 5
  • 9
3
votes
1 answer

What is the best strategy to tune a AWS DocumentDB (MongoDB compatible) collection for aggregation query

I have a single collection (observation) in a DocumentDB cluster. The collection was recently purged but often exceeds 200GB in documents. Below is an example of a document. Example document { "_id" : ObjectId("5edfe9eb8b9b6d37ffc2b9ec"), …
David J Barnes
  • 506
  • 9
  • 15
3
votes
1 answer

MongoDB Compass connectivity issue with Ec2 Instance to access amazon documentDB cluster

I have been trying to access my database that i created on Amazon DocumentDB via MongoDB Compass using Ec2 Instance but following is the error I keep on getting. There are no issues with the security groups, since I have made sure to give…
3
votes
3 answers

Connecting to DocumentDB from AWS Glue

For a current ETL job, I am trying to create a Python Shell Job in Glue. The transformed data needs to be persisted in DocumentDB. I am unable to access the DocumentDB from Glue. Since the DocumentDb cluster resides in a VPC, I thought of creating…
Rahul
  • 44,892
  • 25
  • 73
  • 103
3
votes
1 answer

When are mongodb indexes loaded in memory?

I am trying to figure out when are Mongodb indexes loaded in memory. Assuming I have n collections and each having m indexes. So when mongodb starts, will all n x m indexes be loaded in the memory? As per the docs, they mention that if indexes fit…
rahulserver
  • 10,411
  • 24
  • 90
  • 164
3
votes
3 answers

No server chosen by com.mongodb.async.client.ClientSessionHelpe from cluster description ClusterDescription

I am trying to connect to aws DocumentDB with async mongoClient. I created a DocumentDB cluster in aws and success connect via ssh command line. I went over here and created MongoClient and success connected and insert events. But when I tried…
Maria Dorohin
  • 355
  • 4
  • 17
3
votes
0 answers

How to connect to AWS DocumentDB from Lambda function?

I am trying to connect to AWS DocumentDB from a C# Lambda function. The problem is that it TLS is enabled on DocumentDB and it requires me to add a certificate to a local store. This is fine if I was running on an EC2, because it requires READ/WRITE…
3
votes
1 answer

Querying a subfield in documentdb

For example I have a document below for collection = delivery: { "doc": [ { "docid": "15", "deliverynum": "123", "text": "txxxxxx", "date": "2019-07-18T12:37:58Z" }, { …
Sid
  • 765
  • 5
  • 29
  • 57
3
votes
2 answers

AWS DocumentDB errors after migration from mongoDB

My application is shifted from MongoDB to DocumentDB. I get these errors after migration though I resolved the connectivity issue to AWS DocumentDB. MongoError: namespace name generated from index name is too long at…
Harish
  • 565
  • 1
  • 12
  • 34
1 2
3
29 30