AWS DocumentDB integration

AWS DocumentDB (MongoDB-compatible managed database)

Help Centre › Connectors

Overview

Amazon DocumentDB is AWS's MongoDB-compatible managed document database. The Automize DocumentDB connector covers document reads and writes, aggregation, and listing collections.

  • Regions: Regional. Clusters span 3 AZs by default for HA.
  • Plans: Pay-per-instance-hour + storage. MongoDB 3.6, 4.0, 5.0 compatibility.

Setting up the connection

Auth type: HTTP Basic.

  1. DocumentDB signs in with a database user on the cluster, not with AWS access keys.
  2. Use the cluster's master user, or a user created on the cluster with rights on the database the process uses.
  3. The cluster sits inside your AWS network (VPC), so the machine the bot runs on must be able to reach it, for example over a VPN.
  4. In Automize, open Settings → Connectors → AWS DocumentDB → Add connection.
  5. Paste the connection string from the cluster's Connectivity tab in Connection string and enter the Database the process works in. If the string has no user name and password in it, enter them in Username and Password.

Find your credentials at https://console.aws.amazon.com/docdb/.


Rate limits

Per-region API limits – generous. Cluster query throughput depends on instance size + replication factor.


Data model

MongoDB-compatible:

    Cluster ─── Instances (1 primary + N replicas)
            ├─ Databases ─── Collections ─── Documents
            └─ Snapshots

Available operations

11 operations available. Click any row to jump to its detail.

OperationCategoryWhat it does
AggregateGeneralRun an aggregation pipeline
Count DocumentsGeneralCount documents matching a filter
Delete ManyGeneralDelete all documents matching a filter
Delete OneGeneralDelete a single document matching a filter
Find DocumentsGeneralFind documents matching a filter
Find One DocumentGeneralFind a single document matching a filter
Insert ManyGeneralInsert multiple documents
Insert OneGeneralInsert a single document
List CollectionsGeneralList all collection names in the database
Update ManyGeneralUpdate all documents matching a filter
Update OneGeneralUpdate a single document matching a filter

Operations

Aggregate

Run an aggregation pipeline

ParameterRequiredTypeDescription
Collection collectionYestext
Pipeline pipelineYestextarea

Count Documents

Count documents matching a filter

ParameterRequiredTypeDescription
Collection collectionYestext
Filter filterNotextarea

Delete Many

Delete all documents matching a filter

ParameterRequiredTypeDescription
Collection collectionYestext
Filter filterYestextarea

Delete One

Delete a single document matching a filter

ParameterRequiredTypeDescription
Collection collectionYestext
Filter filterYestextarea

Find Documents

Find documents matching a filter

ParameterRequiredTypeDescription
Collection collectionYestext
Filter filterNotextarea
Projection projectionNotextarea
Limit limitNonumber
Sort sortNotextarea

Find One Document

Find a single document matching a filter

ParameterRequiredTypeDescription
Collection collectionYestext
Filter filterNotextarea
Projection projectionNotextarea

Insert Many

Insert multiple documents

ParameterRequiredTypeDescription
Collection collectionYestext
Documents documentsYestextarea

Insert One

Insert a single document

ParameterRequiredTypeDescription
Collection collectionYestext
Document documentYestextarea

List Collections

List all collection names in the database

No input parameters.


Update Many

Update all documents matching a filter

ParameterRequiredTypeDescription
Collection collectionYestext
Filter filterYestextarea
Update updateYestextarea
Upsert upsertNoswitch

Update One

Update a single document matching a filter

ParameterRequiredTypeDescription
Collection collectionYestext
Filter filterYestextarea
Update updateYestextarea
Upsert upsertNoswitch

FAQ

DocumentDB vs MongoDB Atlas?
DocumentDB: MongoDB-API-compatible but separate codebase, AWS-managed, lower control. Atlas: real MongoDB, multi-cloud, more features. Use DocumentDB if you're all-in on AWS + compatibility is good enough.
Why isn't aggregation pipeline X working?
DocumentDB lacks some MongoDB operators ($lookup limitations, some text search). Check AWS compatibility docs.

Related connectors

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.