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

AWS DocumentDB TLS connection with Java

I am facing problems connecting with my DocumentDB cluster with plain Java over TLS/SSL The procedure I followed as per the AWS docs is this: I downloaded the .pem file from AWS and copied in the root of my java project, from where I…
Arcones
  • 3,954
  • 4
  • 26
  • 46
11
votes
2 answers

Unrecognized field: 'ntoreturn' error in documenDB

I am fetching Unrecognized field: 'ntoreturn' error when i try to change page in my aws documentDB. I have used Robo3t for connect DocumentDB using SSH tunnel.
Ketan Modi
  • 1,780
  • 1
  • 16
  • 28
9
votes
1 answer

Mongoose findOneAndUpdate throw "Retryable writes are not supported" error when working with aws Documentdb

I have a schema as follows: var answerSchema = new mongoose.Schema({ username: { type: String, unique: true, required: true } ) mongoose.model("Answer", answerSchema) and in another file I have: var Answer =…
Elena
  • 93
  • 1
  • 1
  • 4
7
votes
4 answers

DocumentDB/MongoDB UpdateOne - Retryable writes are not supported

I have following bulk_write to upsert each document from my dataset to a collection. data = [] # list of dicts/documents mongo = MongoClient('some_host') db = mongo['some_db'] collection = db['some_collection'] operations = [UpdateOne({'_id':…
learningisfun
  • 131
  • 1
  • 5
6
votes
1 answer

New VPC not showing in selection list for new DocumentDB Cluster

I created a new VPC for our pre-production environment and am attempting to create a DocumentDB cluster within it. Per the VPC Prerequisites at https://docs.aws.amazon.com/documentdb/latest/developerguide/db-cluster-create.html all I need is to…
Joshua Ohana
  • 5,613
  • 12
  • 56
  • 112
6
votes
1 answer

mongorestore is very slow on AWS DocumentDB

There is any way to make this operation faster? I'm trying to restore my DB to the AWS DocumentDB, and probably it will take some weeks to finish... my overall data is less than 400MB. dump is Gzipped
Nir Berko
  • 1,368
  • 1
  • 13
  • 33
6
votes
0 answers

Convert String to Int on AWS DocumentDB

I am currently trying to write a metabase question off AWS Document DB and I am running into an issue where I need to convert a string to an integer. Unfortunately, it seems like aws documentdb does not support $toInt and I am not sure how to get…
Kevin Peng
  • 71
  • 2
6
votes
1 answer

Using AWS Lambda with Amazon DocumentDB Change Streams

I am looking to populate an SQS queue via a lambda function by listening to DocumentDB change streams. I know this can be done with DynamoDB. Is there a way to achieve this with DocumentDB?
Sunny Agarwal
  • 1,451
  • 4
  • 18
  • 36
5
votes
2 answers

Creating AWS DocumentDB in non-default VPC

I am struggling with setting up an AWS DocumentDB cluster in a non-default VPC. I created a new VPC with 1 public and 3 private subnets. The 3 private subnets are all in different Availability Zones and are grouped in one Subnet Group. Still, I can…
Sebastian Dine
  • 815
  • 8
  • 23
5
votes
1 answer

Mongoose timeouts talking to AWS DocumentDB

We are trying to connect to AWS DocumentDB in a lambda which is built on Express in Serverless. To do this we're using mongoose and a connection function that looks something like import mongoose from 'mongoose'; import logger from…
stimms
  • 42,945
  • 30
  • 96
  • 149
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…
5
votes
0 answers

DocumentDb- spring- update field with other field value

I am using DocumentDb from Spring and I want to make an updateMany on a field with the value of another field. The following query is working in MongoDb Console: db.mtpProject.update({}, [{$set: {"fieldToBeUpdated": "$myCurrentField"}}]). If I…
4
votes
1 answer

Using Ruby Mongo with ActiveJob

I am using Ruby 2.7 with Mongo 2.17 client. Currently using Sidekiq with ActiveJob to perform millions of Jobs executions to do single transactions to AWS DocumentDB. While reading the Mongo client documentation I see that they claim that is a bad…
damuz91
  • 1,461
  • 2
  • 21
  • 37
4
votes
1 answer

Spring Data Mongo with AWS DocumentDB findAll throws exception

My team has encountered a problem while moving from regular MongoDB server to AWS DocumentDB. Basically DocumentDB does not support cursors in transactions which is kinda a problem for us. It results in exception when finding more than 102 documents…
1
2 3
29 30