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.
- DocumentDB signs in with a database user on the cluster, not with AWS access keys.
- Use the cluster's master user, or a user created on the cluster with rights on the database the process uses.
- 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.
- In Automize, open Settings → Connectors → AWS DocumentDB → Add connection.
- 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
└─ SnapshotsAvailable operations
11 operations available. Click any row to jump to its detail.
| Operation | Category | What it does |
|---|---|---|
| Aggregate | General | Run an aggregation pipeline |
| Count Documents | General | Count documents matching a filter |
| Delete Many | General | Delete all documents matching a filter |
| Delete One | General | Delete a single document matching a filter |
| Find Documents | General | Find documents matching a filter |
| Find One Document | General | Find a single document matching a filter |
| Insert Many | General | Insert multiple documents |
| Insert One | General | Insert a single document |
| List Collections | General | List all collection names in the database |
| Update Many | General | Update all documents matching a filter |
| Update One | General | Update a single document matching a filter |
Operations
Aggregate
Run an aggregation pipeline
| Parameter | Required | Type | Description |
|---|---|---|---|
Collection collection | Yes | text | |
Pipeline pipeline | Yes | textarea |
Count Documents
Count documents matching a filter
| Parameter | Required | Type | Description |
|---|---|---|---|
Collection collection | Yes | text | |
Filter filter | No | textarea |
Delete Many
Delete all documents matching a filter
| Parameter | Required | Type | Description |
|---|---|---|---|
Collection collection | Yes | text | |
Filter filter | Yes | textarea |
Delete One
Delete a single document matching a filter
| Parameter | Required | Type | Description |
|---|---|---|---|
Collection collection | Yes | text | |
Filter filter | Yes | textarea |
Find Documents
Find documents matching a filter
| Parameter | Required | Type | Description |
|---|---|---|---|
Collection collection | Yes | text | |
Filter filter | No | textarea | |
Projection projection | No | textarea | |
Limit limit | No | number | |
Sort sort | No | textarea |
Find One Document
Find a single document matching a filter
| Parameter | Required | Type | Description |
|---|---|---|---|
Collection collection | Yes | text | |
Filter filter | No | textarea | |
Projection projection | No | textarea |
Insert Many
Insert multiple documents
| Parameter | Required | Type | Description |
|---|---|---|---|
Collection collection | Yes | text | |
Documents documents | Yes | textarea |
Insert One
Insert a single document
| Parameter | Required | Type | Description |
|---|---|---|---|
Collection collection | Yes | text | |
Document document | Yes | textarea |
List Collections
List all collection names in the database
No input parameters.
Update Many
Update all documents matching a filter
| Parameter | Required | Type | Description |
|---|---|---|---|
Collection collection | Yes | text | |
Filter filter | Yes | textarea | |
Update update | Yes | textarea | |
Upsert upsert | No | switch |
Update One
Update a single document matching a filter
| Parameter | Required | Type | Description |
|---|---|---|---|
Collection collection | Yes | text | |
Filter filter | Yes | textarea | |
Update update | Yes | textarea | |
Upsert upsert | No | switch |
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.