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
0
votes
1 answer

Unable to run mongoexport on AWS EC2 instance

I have data in a DocumentDB database that I would like to export to an S3 bucket. However, when I try to run the mongoexport command: mongoexport --uri="my_cluster_address/database_to_use" --collection=my_collection --out=some_file.json I get this…
KoalaKey
  • 252
  • 3
  • 11
0
votes
1 answer

AWS DMS is failing on some collections

I'm trying to understand why 3 of my collections is failing during the migration. I got the error Execute bulk failed with errors: ‘invalid document for insert: empty key' but didn't managed to understand and solve this issue. I'm using DocumentDB…
Nir Berko
  • 1,368
  • 1
  • 13
  • 33
0
votes
1 answer

Trying to connect programmatically to AWS DocumentDB in the same vpc but connection fails

I’m trying to connect on my Docker application using TypeORM, which is running on EC2, to DocumentDB cluster. Both EC2 and DocumentDB are running on the same VPC. However, it throws MongoServerSelectionError. Here is my configuration: { uri:…
0
votes
0 answers

Sending Data From Elasticsearch to AWS Databases

I am new in these area and I need your support. I have an Elasticsearch environment running in my Docker. First, my data goes here. I can reach the data also by using Kibana on localhost:5601. Afterwards, I need to send these data to AWS DynamoDB…
0
votes
1 answer

Getting previous page's results when using skip and limit while querying DocumentDB

I have a collection with ~800,000 documents, I am trying to fetch all of them, 5,000 at a time. When running the following code: const CHUNK_SIZE = 5000; let skip = 0; do { matches = await dbClient .collection(collectionName) .find({}) …
dutzi
  • 1,880
  • 1
  • 18
  • 23
0
votes
2 answers

Replacing $ifNull with $cond in MongoDB aggregation

I am thinking of migrating my app from MongoDB 3.6 to AWS DocumentDB. I am checking to see if everything is supported and I found $ifNull (aggregation) in the code. DocumentDB does not support $ifNull. For a sample set of documents: [ {…
BennyMcBenBen
  • 1,438
  • 2
  • 20
  • 37
0
votes
2 answers

How to connect amazon documentDB from local node.js

I can connect to documentDB if my node.js app is in ec2 instance based from this page: https://docs.aws.amazon.com/documentdb/latest/developerguide/connect_programmatically.html But is it possible to connect to documentDb if I run my node.js app…
noyruto88
  • 767
  • 2
  • 18
  • 40
0
votes
1 answer

Pentaho Kettle: How to dynamically fetch JSON file columns

Background: I work for a company that basically sells passes. Every order that is placed by the customer will contain N number of passes. Issue: I have these JSON event-transaction files coming into a S3 bucket on a daily basis from DocumentDB…
ERR
  • 213
  • 1
  • 6
  • 17
0
votes
0 answers

Can I create a documentdb index to trace the referers in a collection?

We currently have a collection of users where each document has, amongst other fields, an _id field and a _referrer field, which will be an _id of someone else in the user collection. We want to be find every users a specific user referred to us,…
dsollen
  • 6,046
  • 6
  • 43
  • 84
0
votes
1 answer

DocumentDB is using way more IOPS than it should

My team and I recently switched a relatively large MongoDB deployment (0.5T originally) onto AWS DocumentDB. Strangely, DocumentDB is taking up way more resources than I think it should. On our old cluster we never went over 1500 IOPS, but now we're…
ZECTBynmo
  • 3,197
  • 3
  • 25
  • 42
0
votes
2 answers

Using DocumentDB change stream on multiple collections?

I'm implementing python an application to capture change on DocumentDB using Change Stream feature my design is watching change on all collections in the target database and publish to some message queue to do some processing. My question is…
ItIsYe
  • 9
  • 1
0
votes
2 answers

How to store files larger than 16mb in AWS DocumentDB?

I am switching from MongoDB to AWS DocumentDB. However, in MongoDB, I used GridFs to store and retrieve files larger than 16MB. But this is not supported in AWS DocumentDb. Is there any way on how to store or process large files(>16MB) in AWS…
0
votes
0 answers

Amplify + Cognito signup trigger create document in lambda

I am using amplify auth and have a table in documentdb managing user profile information. I want to be able to create a document in dynamodb on signup with the cognitoIdentityId as a field so I can query for it later. I was hoping I could handle…
0
votes
1 answer

Replicate data from couchbase onpremise to AWS documentdb

I have a couchbase installation onpremise and the same data at real time needs to be replicated to AWS Document DB, what are the possible approaches? Can Synch Gateway help?
dvlpr
  • 311
  • 3
  • 17
0
votes
1 answer

event notification for documentDB instances

I get an alert like this everytime I create / delete a documentDB instance. I do not remember how did I set it up. I checked documentDB console as well as cloudwatch console, but can not see any relveant entry. Event Source : db-instance Identifier…
shantanuo
  • 31,689
  • 78
  • 245
  • 403
1 2 3
29
30