amazon-documentdb

Manages Amazon DocumentDB clusters, migrations, upgrades, and performance reviews via AWS CLI workflows.

Updated Sep 8, 2026
One-click install
npx skills add https://github.com/dennisvink/yolomancer --skill amazon-documentdb-dennisvink
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: amazon-documentdb
Source: https://github.com/dennisvink/yolomancer/tree/main/skills/aws/specialized-skills/database-skills/amazon-documentdb
Command: npx skills add https://github.com/dennisvink/yolomancer --skill amazon-documentdb-dennisvink

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires boto3, and includes scripts (resource) and references (resource) components.

What problem does it solve? Running Amazon DocumentDB in production involves many error-prone tasks: creating clusters with correct TLS/VPC settings, assessing MongoDB compatibility, migrating data with DMS, diagnosing slow queries, and performing major version upgrades. This Skill executes these workflows directly against your cluster instead of just giving advice, producing concrete artifacts like compatibility reports and migration plans. ## Core Features & Use Cases - Cluster Setup & Connection: Creates serverless DocumentDB 8.0 clusters with correct TLS, VPC security groups, and driver configuration for Python, Node.js, Java, Go, C#, and Ruby. - MongoDB Migration: Runs the amazon-documentdb-tools compatibility assessor, migrates indexes, and orchestrates DMS full-load-plus-CDC tasks with a validated cutover checklist. - Performance & Well-Architected Review: Diagnoses COLLSCAN slow queries with explain() analysis and runs a 41-check automated Well-Architected review across 6 pillars via wa_review.py. - Use Case: A team migrating a MongoDB product catalog to AWS asks for help. The Skill runs the compatibility tool against the source, flags unsupported operators like $where, pre-creates indexes on the target, sets up DMS endpoints with verify-full TLS, monitors CDC latency to zero, and walks through the cutover steps. ## Quick Start Ask the assistant to create a new serverless DocumentDB cluster in your preferred region and generate a working connection string for your application.

Frequently Asked Questions about amazon-documentdb

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate MongoDB to Amazon DocumentDB?

Run the compatibility assessor from amazon-documentdb-tools against your MongoDB source first, then use the index tool to pre-create indexes on the target. Set up a DMS full-load-and-cdc task with TLS verify-full on the target endpoint, monitor CDC latency to near zero, then cut over application traffic.

How do I fix a slow query or COLLSCAN in DocumentDB?

Run explain("executionStats") on the query to confirm COLLSCAN, then create a compound index following the ESR rule (equality, sort, range). DocumentDB uses left-prefix matching, so field order matters. Re-run explain() to verify the stage changed to IXSCAN.

Does DocumentDB support $graphLookup and vector search?

Support varies by engine version, so verify current status on the MongoDB API compatibility page before advising. Vector search works on 5.0+ instance-based clusters, and the $vectorSearch operator requires 8.0. If $graphLookup is unsupported, use materialized ancestor paths instead.

Why does my Lambda function fail to connect to DocumentDB?

DocumentDB is VPC-only with no public endpoint, so Lambda must run in the same VPC or reach it via peering. The DocumentDB security group needs inbound TCP 27017 from Lambda's security group, and the connection string must include tls=true with the RDS global CA bundle, replicaSet=rs0, and retryWrites=false.

How do I upgrade DocumentDB from 5.0 to 8.0 without downtime?

Use the near-zero-downtime path: enable change streams on the source, clone the cluster with restore-to-point-in-time, upgrade the clone in place with --allow-major-version-upgrade, then replicate changes via a DMS CDC task and cut over when lag reaches zero.

What are the limitations of DocumentDB Elastic Clusters?

Elastic Clusters lack transactions, change streams, and many aggregation operators compared to instance-based clusters. This Skill steers workloads to serverless or provisioned instance-based clusters instead, and its workflows do not cover Elastic Clusters.