[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A6VKJH0XCDF3N04F0S0XRV":3,"skill-same:01M7A6VKJH0XCDF3N04F0S0XRV":142},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M7A6VKJH0XCDF3N04F0S0XRV","documentdb-cluster-deployer",null,"Provisions Amazon DocumentDB (MongoDB compatibility) clusters with production defaults: cluster creation (create-db-cluster), instance types (r5.large through r5.24xlarge, t3.medium), storage autoscaling, multi-AZ replication (primary + replicas), parameter groups, subnet groups, security groups, KMS encryption at rest, backup retention (1-35 days), global clusters (cross-region), change streams for CDC, indexing strategy (single vs compound vs text), MongoDB API compatibility version (3.6\u002F4.0\u002F5.0), connect via mongo shell, TLS (enable\u002Fdisable), and CloudWatch metrics. Emits a READY_TO_DEPLOY checklist with verification commands. Use when creating a DocumentDB cluster, adding instances, configuring change streams, setting up a global cluster, enabling storage autoscaling, or managing backup retention. Triggers: create documentdb cluster, documentdb instance, documentdb change streams, documentdb global cluster, documentdb storage autoscaling, documentdb subnet group, documentdb parameter group, documentdb...","jhkchan\u002Faws-agent-skills","jhkchan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1083902?v=4","01M7A2SVQYP9GQTPTDXP5JKYQ4","Jacky Chan","01M7A2SVS117YWCTZABB75HZR1",4,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdocumentdb-cluster-deployer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: documentdb-cluster-deployer\ndescription: 'Provisions Amazon DocumentDB (MongoDB compatibility) clusters with production defaults: cluster creation (create-db-cluster), instance types (r5.large through r5.24xlarge, t3.medium), storage autoscaling, multi-AZ replication (primary + replicas), parameter groups, subnet groups, security groups, KMS encryption at rest, backup retention (1-35 days), global clusters (cross-region), change streams for CDC, indexing strategy (single vs compound vs text), MongoDB API compatibility version (3.6\u002F4.0\u002F5.0), connect via mongo shell, TLS (enable\u002Fdisable), and CloudWatch metrics. Emits a READY_TO_DEPLOY checklist with verification commands. Use when creating a DocumentDB cluster, adding instances, configuring change streams, setting up a global cluster, enabling storage autoscaling, or managing backup retention. Triggers: create documentdb cluster, documentdb instance, documentdb change streams, documentdb global cluster, documentdb storage autoscaling, documentdb subnet group, documentdb parameter group, documentdb...'\nlicense: Apache-2.0\ncompatibility: 'Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with docdb access. Works with Terraform aws_docdb_cluster \u002F aws_docdb_cluster_instance \u002F aws_docdb_subnet_group \u002F aws_docdb_global_cluster resources and CloudFormation AWS::DocDB::DBCluster templates.'\nmetadata:\n  domain: aws-cloudops\n  complexity: high\n  requires_llm: 'true'\n  phase: '1'\n  supports_pipeline: 'true'\n  entry_point: 'false'\n  family: Databases\n  task_type: deploy\n  skill_class: capability\n  lifecycle_status: active\n  verdict_shape: READY_TO_DEPLOY | PREREQUISITES_MISSING\n  version: 0.1.0\n  author: Jacky Chan — AWS Community Builder\n  tags: aws, documentdb, mongodb, cloudops, deploy, databases, provisioning, cluster, change-streams, global-cluster, storage-autoscaling, kms, backup, indexing\n  dependencies: aws-orchestrator\n  keywords: aws, documentdb, mongodb, document database, cloudops, deploy, provisioning, cluster, change streams, global cluster, storage autoscaling, kms encryption, backup retention, indexing, multi-az, parameter group, subnet group, tls\n  when_to_use: Invoke when the user wants to create an Amazon DocumentDB cluster, add instances to a cluster, configure change streams for CDC, set up a global cluster for cross-region disaster recovery, enable storage autoscaling, manage backup retention, create indexes, or connect via mongo shell. Do NOT invoke for Amazon RDS (use RDS skills), Amazon DynamoDB (use DynamoDB skills), Amazon ElastiCache (use ElastiCache skills), or Amazon Neptune (use Neptune skills).\n---\n\n# DocumentDB Cluster Deployer\n\nAn AWS CloudOps agent skill that provisions Amazon DocumentDB (MongoDB\ncompatibility) clusters with correct defaults. The skill walks the\noperator through cluster creation, instance-type selection (r5\u002Ft3),\nstorage autoscaling with ceiling, multi-AZ replication, parameter\ngroups, subnet groups, security groups, KMS encryption, backup\nretention, global clusters, change streams, and indexing strategy,\ncaptures workload and durability decisions, explains why each default\nmatters, and emits a READY_TO_DEPLOY checklist with copy-pasteable\nverification commands.\n\n## Activation keywords\nActivation keyword list moved to\n[references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## STRICT output contract\n\nWhen this skill is invoked with a DocumentDB-provisioning request\n(create a cluster, add instances, configure change streams, set up a\nglobal cluster, enable storage autoscaling, or a partial configuration),\nthe agent MUST respond with the READY_TO_DEPLOY checklist defined in the\n\"Output format\" section using the literal all-caps labels\n`DOCUMENTDB_CLUSTER:`, `VERDICT:`, `CHECKLIST:`, and\n`VERIFICATION_COMMANDS:`. Do NOT preface the checklist with prose,\nheadings, or disclaimers — emit the block as the first lines of the\nresponse. This contract is what assertion-based evals and downstream\nprovisioning pipelines rely on; deviating from the literal labels breaks\nautomation silently.\n\nIf any prerequisite is missing, the verdict is `PREREQUISITES_MISSING`\nwith a specific gap citation in the checklist (marked `[✗]`), and\n`READY_TO_DEPLOY` MUST NOT also appear.\n\n## Quick navigation\n\n| Section | When to read |\n|---|---|\n| Prerequisites | Always — verify before provisioning |\n| Step 1 — Cluster architecture (cluster + instances) | Core model |\n| Step 2 — Instance types (r5 vs t3) | Sizing |\n| Step 3 — Storage autoscaling | Storage growth |\n| Step 4 — Multi-AZ replication | High availability |\n| Step 5 — Subnet groups and security groups | Network |\n| Step 6 — Parameter groups | Configuration |\n| Step 7 — KMS encryption | Security |\n| Step 8 — Backup retention and point-in-time recovery | Durability |\n| Step 9 — Change streams for CDC | Change data capture |\n| Step 10 — Indexing strategy (no query optimizer) | Performance |\n| Step 11 — Global clusters | Cross-region DR |\n| Step 12 — MongoDB compatibility and connecting | Client access |\n| Step 13 — TLS configuration | Security |\n| Step 14 — CloudWatch metrics | Observability |\n| NEVER do these things | Review before signing off |\n| Output format | The literal checklist template |\n| references\u002Fstorage-and-changestreams.md | Storage autoscaling + CDC detail |\n| references\u002Fglobal-clusters-and-indexing.md | Global cluster + indexing detail |\n\n## Mindset\n\n**One-line takeaway:** Amazon DocumentDB is a managed MongoDB-compatible\ndatabase that separates compute (instances) from storage (cluster volume\nthat auto-expands). There is NO query optimizer — you MUST create indexes\nBEFORE running queries, or every query is a collection scan. Change\nstreams are the recommended CDC mechanism.\n\nThree misconceptions dominate DocumentDB misdesign at provisioning time:\n\n- **\"DocumentDB has a query optimizer like MongoDB.\"** It does NOT.\n  DocumentDB lacks a query planner. Every query without a matching index\n  is a full collection scan. Unlike MongoDB (which can create indexes on\n  the fly or choose among indexes), DocumentDB requires explicit index\n  creation BEFORE issuing queries. Failing to index before query is the\n  #1 cause of production latency in DocumentDB.\n\n- **\"Storage autoscaling means I never need to think about storage.\"** It\n  does not. DocumentDB storage autoscaling automatically grows the\n  cluster volume, but there is a ceiling. If storage hits the ceiling\n  (default 50 TB, or your configured maximum), the cluster stops\n  accepting writes. You MUST set the autoscaling ceiling to match your\n  projected growth, and monitor storage utilization against it.\n\n- **\"Change streams are optional for CDC.\"** They are the recommended\n  approach. DocumentDB change streams provide ordered, resumable change\n  events. Without change streams, you are limited to polling (full table\n  scans), which is expensive and imprecise. Enable change streams at\n  cluster creation if any downstream system needs CDC.\n\n## Configuration dependency graph (novel heuristic)\nFull dependency table and cross-dependency gotchas moved to\n[references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## Expert heuristic: the storage autoscaling ceiling\nAutoscaling-ceiling heuristic moved to\n[references\u002Fstorage-and-changestreams.md](references\u002Fstorage-and-changestreams.md).\n\n## Expert heuristic: index before query (no query optimizer)\nIndex-type selection heuristic moved to\n[references\u002Fglobal-clusters-and-indexing.md](references\u002Fglobal-clusters-and-indexing.md).\n\n## Expert heuristic: change streams for CDC\nChange-stream flow and resume-token gotcha moved to\n[references\u002Fstorage-and-changestreams.md](references\u002Fstorage-and-changestreams.md).\n\n## Expert heuristic: index build blocking writes (foreground vs background)\nForeground-vs-background index build behavior moved to\n[references\u002Fglobal-clusters-and-indexing.md](references\u002Fglobal-clusters-and-indexing.md).\n\n## Expert heuristic: MongoDB API compatibility gaps\nUnsupported aggregation stages and feature gaps moved to\n[references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## Expert heuristic: TLS certificate rotation downtime\nTLS certificate rotation lifecycle moved to\n[references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## Prerequisites (verify before provisioning)\n\nBefore emitting provisioning commands, verify these prerequisites. If\nany are missing, the verdict is **PREREQUISITES_MISSING**.\n\n| Prerequisite | Why it matters | How to verify |\n|---|---|---|\n| VPC with at least 2 AZs | DocumentDB requires multi-AZ subnet group for HA | `aws ec2 describe-subnets` |\n| Subnet group (or subnets to create one) | Cluster needs a subnet group | `aws docdb describe-db-subnet-groups` |\n| Security group allowing port 27017 | Client connectivity | `aws ec2 describe-security-groups` |\n| KMS key (if customer-managed encryption) | Encryption at rest | `aws kms describe-key --key-id \u003Calias>` |\n| Instance class decision (r5 vs t3) | Compute sizing | Assess workload |\n| Backup retention decision (1-35 days) | PITR window | Assess compliance needs |\n| Storage autoscaling ceiling | Write outage prevention | Assess projected growth |\n| MongoDB compatibility version (4.0\u002F5.0) | Feature set depends on version | Assess driver compatibility |\n\nIf any prerequisite is missing, output `VERDICT: PREREQUISITES_MISSING`\nand cite the specific gap.\n\n## Step 1 — Cluster architecture (cluster + instances)\n\nDocumentDB uses a cluster architecture: one cluster endpoint, a primary\ninstance, and 0-15 replica instances. Storage is a shared cluster volume\n(separated from compute).\n\n| Component | Role | API |\n|---|---|---|\n| Cluster | Endpoint management, storage volume, backups, parameter group | `create-db-cluster` |\n| Primary instance | Read + write | `create-db-instance` |\n| Replica instances | Read-only (up to 15) | `create-db-instance` |\n| Cluster endpoint | Writer endpoint (always points to primary) | automatic |\n| Reader endpoint | Round-robin across replicas | automatic |\n\n**The cluster is the storage and management boundary. Instances are\ncompute.** Adding instances adds read capacity; storage is shared.\n\n## Step 2 — Instance types (r5 vs t3)\n\n| Instance class | vCPU | Memory (GiB) | Use case |\n|---|---|---|---|\n| db.r5.large | 2 | 16 | Small production |\n| db.r5.xlarge | 4 | 32 | Medium production |\n| db.r5.2xlarge | 8 | 64 | Large production |\n| db.r5.4xlarge | 16 | 128 | X-large production |\n| db.r5.8xlarge | 32 | 256 | XX-large production |\n| db.r5.16xlarge | 64 | 512 | Max primary |\n| db.r5.24xlarge | 96 | 768 | Largest primary |\n| db.t3.medium | 2 | 4 | Development\u002Ftest |\n\n**r5 instances** are memory-optimized — recommended for production.\n**t3.medium** is burstable — suitable for development only. NOT\nrecommended for production because CPU credits deplete under sustained\nload.\n\n## Step 3 — Storage autoscaling\n\nDocumentDB storage auto-grows from 10 GB. Set an explicit ceiling to\nprevent STORAGE_FULL write outages.\n\n```bash\naws docdb create-db-cluster \\\n  --db-cluster-identifier my-docdb-cluster \\\n  --engine docdb \\\n  --master-username admin \\\n  --master-user-password 'UseAStrongPassword123!' \\\n  --db-subnet-group-name my-subnet-group \\\n  --vpc-security-group-ids sg-abc123 \\\n  --backup-retention-period 7 \\\n  --deletion-protection \\\n  --region us-east-1\n\n# Monitor free storage\naws cloudwatch get-metric-statistics \\\n  --namespace AWS\u002FDocDB \\\n  --metric-name FreeStorageSpace \\\n  --dimensions Name=DBClusterIdentifier,Value=my-docdb-cluster \\\n  --start-time $(date -u -v-1H +%Y-%m-%dT%H:%M:%S) \\\n  --end-time $(date -u +%Y-%m-%dT%H:%M:%S) \\\n  --period 300 --statistics Average \\\n  --region us-east-1\n```\n\n**Expert rule:** set ceiling = projected 12-month growth x 1.5. Alert\nwhen free storage drops below 20% of ceiling.\n\n## Step 4 — Multi-AZ replication\n\nDocumentDB provides multi-AZ availability with a primary instance in one\nAZ and replicas in other AZs. If the primary fails, DocumentDB\nautomatically promotes a replica (failover takes ~30 seconds).\n\n```bash\n# Create the primary instance\naws docdb create-db-instance \\\n  --db-instance-identifier my-docdb-primary \\\n  --db-instance-class db.r5.large \\\n  --engine docdb \\\n  --db-cluster-identifier my-docdb-cluster \\\n  --region us-east-1\n\n# Create a replica in a different AZ with failover priority\naws docdb create-db-instance \\\n  --db-instance-identifier my-docdb-replica-1 \\\n  --db-instance-class db.r5.large \\\n  --engine docdb \\\n  --db-cluster-identifier my-docdb-cluster \\\n  --preferred-availability-zone us-east-1b \\\n  --promotion-tier 0 \\\n  --region us-east-1\n```\n\n**Failover priority:** each instance has a priority (0 = highest). The\nhighest-priority replica is promoted during failover.\n\n## Step 5 — Subnet groups and security groups\n\n```bash\n# Subnet group (requires at least 2 AZs)\naws docdb create-db-subnet-group \\\n  --db-subnet-group-name my-subnet-group \\\n  --db-subnet-group-description \"DocumentDB subnet group\" \\\n  --subnet-ids subnet-aaa111 subnet-bbb222 subnet-ccc333 \\\n  --region us-east-1\n\n# Security group (port 27017 from app tier)\naws ec2 authorize-security-group-ingress \\\n  --group-id sg-docdb-cluster \\\n  --ip-permissions \\\n    \"IpProtocol=tcp,FromPort=27017,ToPort=27017,IpRanges=[{CidrIp=10.0.0.0\u002F16}]\" \\\n  --region us-east-1\n```\n\n## Step 6 — Parameter groups\n\nParameter groups control cluster-level settings including change streams,\nprofiling, and TLS.\n\n```bash\naws docdb create-db-cluster-parameter-group \\\n  --db-cluster-parameter-group-name my-param-group \\\n  --db-parameter-group-family docdb4.0 \\\n  --description \"DocumentDB parameter group with change streams\" \\\n  --region us-east-1\n\n# Enable change streams (retention in seconds: 86400 = 1 day, 172800 = 2 days, 259200 = 3 days)\naws docdb modify-db-cluster-parameter-group \\\n  --db-cluster-parameter-group-name my-param-group \\\n  --parameters \\\n    ParameterName=change_streams_log_retention_duration,ParameterValue=172800,ApplyMethod=immediate \\\n    ParameterName=audit_logs,ParameterValue=enabled,ApplyMethod=immediate \\\n  --region us-east-1\n```\n\n**Key parameters:**\n\n| Parameter | Default | Expert value | Why |\n|---|---|---|---|\n| change_streams_log_retention_duration | 0 (disabled) | 172800 (2 days) | Enables CDC with 48h recovery buffer |\n| audit_logs | disabled | enabled | Compliance and security auditing |\n| tls | enabled | enabled | Always keep TLS enabled in production |\n\n## Step 7 — KMS encryption\n\n```bash\naws docdb create-db-cluster \\\n  --db-cluster-identifier my-docdb-cluster \\\n  --engine docdb \\\n  --master-username admin \\\n  --master-user-password 'UseAStrongPassword123!' \\\n  --kms-key-id arn:aws:kms:us-east-1:123456789012:key\u002Fabc123 \\\n  --storage-encrypted \\\n  --db-subnet-group-name my-subnet-group \\\n  --vpc-security-group-ids sg-abc123 \\\n  --region us-east-1\n```\n\n**Critical:** KMS key cannot be changed after cluster creation without\nsnapshot-restore. Choose customer-managed key at creation for maximum\ncontrol.\n\n## Step 8 — Backup retention and point-in-time recovery\n\n```bash\n# Set backup retention at creation (1-35 days)\naws docdb create-db-cluster \\\n  --db-cluster-identifier my-docdb-cluster \\\n  --engine docdb \\\n  --backup-retention-period 7 \\\n  ...\n\n# Modify backup retention\naws docdb modify-db-cluster \\\n  --db-cluster-identifier my-docdb-cluster \\\n  --backup-retention-period 14 \\\n  --apply-immediately \\\n  --region us-east-1\n\n# Restore to a point in time\naws docdb restore-db-cluster-to-point-in-time \\\n  --source-db-cluster-identifier my-docdb-cluster \\\n  --db-cluster-identifier my-docdb-restored \\\n  --restore-to-time 2026-08-05T12:00:00Z \\\n  --region us-east-1\n```\n\nPoint-in-time recovery is automatically enabled when backup retention is\n> 0.\n\n## Step 9 — Change streams for CDC\nEnablement commands and driver consumption example moved to\n[references\u002Fstorage-and-changestreams.md](references\u002Fstorage-and-changestreams.md).\n\n## Step 10 — Indexing strategy (no query optimizer)\nConnect and create-index commands moved to\n[references\u002Fglobal-clusters-and-indexing.md](references\u002Fglobal-clusters-and-indexing.md).\n\n## Step 11 — Global clusters\nGlobal cluster creation commands moved to\n[references\u002Fglobal-clusters-and-indexing.md](references\u002Fglobal-clusters-and-indexing.md).\n\n## Step 12 — MongoDB compatibility and connecting\n\n| Engine version | MongoDB wire compatibility | Key features |\n|---|---|---|\n| 5.0.0 | MongoDB 5.0 | Time series collections, stable API |\n| 4.0.0 | MongoDB 4.0 | Transactions, change streams improvements |\n| 3.6.0 | MongoDB 3.6 | Baseline — change streams, retries |\n\n```bash\n# Connect via mongo shell (with TLS)\nmongo \"mongodb:\u002F\u002Fadmin:password@cluster-endpoint:27017\u002F?tls=true&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false\" \\\n  --tlsCAFile rds-combined-ca-bundle.pem\n\n# Download the CA bundle\nwget https:\u002F\u002Fs3.amazonaws.com\u002Frds-downloads\u002Frds-combined-ca-bundle.pem\n```\n\n**Connection string:** `tls=true` (required), `replicaSet=rs0`,\n`readPreference=secondaryPreferred`, `retryWrites=false` (DocumentDB\ndoes not support retryable writes).\n\n## Step 13 — TLS configuration\n\nTLS is enabled by default on DocumentDB clusters. Disabling TLS is NOT\nrecommended for production.\n\n```bash\n# Check TLS status (parameter group)\naws docdb describe-db-cluster-parameters \\\n  --db-cluster-parameter-group-name my-param-group \\\n  --query 'Parameters[?ParameterName==`tls`]' \\\n  --region us-east-1\n```\n\n**Expert rule:** always keep TLS enabled. Disabling TLS exposes database\ntraffic in plaintext. Only disable for local development testing.\n\n## Step 14 — CloudWatch metrics\nMetrics and alert-threshold table moved to\n[references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## NEVER do these things\n\n1. **NEVER deploy queries without creating indexes first.** DocumentDB\n   has NO query optimizer. A query without a matching index is a full\n   collection scan.\n\n2. **NEVER leave the storage autoscaling ceiling at default without\n   assessment.** Hitting the ceiling causes STORAGE_FULL and ALL writes\n   are rejected. Set the ceiling with 50% headroom.\n\n3. **NEVER disable TLS in production.** TLS is enabled by default for a\n   reason. Only disable for local development testing.\n\n4. **NEVER use t3.medium instances for production.** T3 instances are\n   burstable — CPU credits deplete under sustained load. Use r5.\n\n5. **NEVER create a single-instance cluster for production.** Always\n   deploy at least 1 primary + 1 replica in different AZs.\n\n6. **NEVER forget to enable change streams at creation.** Enabling\n   later requires a parameter group change and cluster reboot.\n\n7. **NEVER use retryWrites=true in the connection string.** DocumentDB\n   does not support retryable writes. Always set `retryWrites=false`.\n\n8. **NEVER assume global cluster failover is automatic.** Secondary\n   promotion requires scripting (Lambda + EventBridge).\n\n9. **NEVER change the KMS key after cluster creation without planning\n   downtime.** Changing encryption requires a snapshot-restore cycle.\n\n10. **NEVER skip deletion protection for production clusters.**\n\n## Output format\n\n```text\nDOCUMENTDB_CLUSTER: \u003Ccluster-identifier> (\u003Cengine-version>)\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nCHECKLIST:\n  [✓|✗] Cluster identifier: \u003Cname>\n  [✓|✗] Engine version: \u003C4.0|5.0> (MongoDB compatibility)\n  [✓|✗] Instance class: \u003Cdb.r5.large|db.t3.medium> — \u003Cpurpose>\n  [✓|✗] Instance count: \u003Cn> primary + \u003Cn> replicas (multi-AZ: yes|no)\n  [✓|✗] Subnet group: \u003Cname> (spans \u003Cn> AZs)\n  [✓|✗] Security group: \u003Csg-id> (port 27017 from \u003Ccidr>)\n  [✓|✗] Parameter group: \u003Cname> (change_streams: \u003Cenabled|disabled>, retention: \u003Cn> days)\n  [✓|✗] KMS encryption: \u003Ccustomer-managed|aws-managed> (\u003Ckey-id>)\n  [✓|✗] Backup retention: \u003Cn> days (PITR: enabled)\n  [✓|✗] Storage autoscaling ceiling: \u003Cn> TB (headroom: \u003Cn>%)\n  [✓|✗] Change streams: \u003Cenabled|disabled> (retention: \u003Cn> days)\n  [✓|✗] Indexing strategy: \u003Csingle|compound|text|ttl|unique> indexes documented\n  [✓|✗] Global cluster: \u003Cnone|primary in \u003Cregion>, secondary in \u003Cregion>>\n  [✓|✗] TLS: enabled (production default)\n  [✓|✗] Deletion protection: enabled\n  [✓|✗] Tags: \u003Ckey=value list>\nVERIFICATION_COMMANDS:\n  aws docdb describe-db-clusters --db-cluster-identifier \u003Ccluster-id> --region \u003Cregion>\n  aws docdb describe-db-instances --query 'DBInstances[?DBClusterIdentifier==`\u003Ccluster-id>`]' --region \u003Cregion>\n  aws cloudwatch get-metric-statistics --namespace AWS\u002FDocDB --metric-name DatabaseCpuUtilization --dimensions Name=DBClusterIdentifier,Value=\u003Ccluster-id> --region \u003Cregion>\n```\n\n### Worked example — production multi-AZ cluster with change streams\n\n```text\nDOCUMENTDB_CLUSTER: orders-docdb (5.0.0)\nVERDICT: READY_TO_DEPLOY\nCHECKLIST:\n  [✓] Cluster identifier: orders-docdb\n  [✓] Engine version: 5.0.0 (MongoDB 5.0 compatibility)\n  [✓] Instance class: db.r5.large — production\n  [✓] Instance count: 1 primary + 2 replicas (multi-AZ: yes)\n  [✓] Subnet group: docdb-subnet-group (spans 3 AZs)\n  [✓] Security group: sg-docdb-001 (port 27017 from 10.0.0.0\u002F16)\n  [✓] Parameter group: docdb-prod-params (change_streams: enabled, retention: 2 days)\n  [✓] KMS encryption: customer-managed (arn:aws:kms:us-east-1:123456789012:key\u002Fabc123)\n  [✓] Backup retention: 7 days (PITR: enabled)\n  [✓] Storage autoscaling ceiling: 10 TB (headroom: 50%)\n  [✓] Change streams: enabled (retention: 2 days)\n  [✓] Indexing strategy: compound {status, created_at} + single {email} + text {name, description}\n  [✓] Global cluster: none\n  [✓] TLS: enabled (production default)\n  [✓] Deletion protection: enabled\n  [✓] Tags: Environment=production, Application=orders\nVERIFICATION_COMMANDS:\n  aws docdb describe-db-clusters --db-cluster-identifier orders-docdb --region us-east-1\n  aws docdb describe-db-instances --query 'DBInstances[?DBClusterIdentifier==`orders-docdb`]' --region us-east-1\n  aws cloudwatch get-metric-statistics --namespace AWS\u002FDocDB --metric-name DatabaseCpuUtilization --dimensions Name=DBClusterIdentifier,Value=orders-docdb --region us-east-1\n```\n\n## Error handling\nFailure-mode deep dives (STORAGE_FULL, slow queries, change streams,\nTLS handshake, replica lag) moved to [references\u002Ferror-handling.md](references\u002Ferror-handling.md).\n\n## References (load on demand)\n\n- [references\u002Fstorage-and-changestreams.md](references\u002Fstorage-and-changestreams.md) — storage autoscaling + CDC detail (now also holds the autoscaling-ceiling and change-stream heuristics and the Step 9 commands moved from this file)\n- [references\u002Fglobal-clusters-and-indexing.md](references\u002Fglobal-clusters-and-indexing.md) — global cluster + indexing detail (now also holds the indexing heuristics and Step 10\u002F11 commands moved from this file)\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — STORAGE_FULL, slow queries, change-stream, TLS, replica-lag failure modes (moved from this file)\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — dependency graph, MongoDB API gaps, TLS rotation, CloudWatch metrics, activation keywords (moved from this file)\n\n## Domain\n\nAWS CloudOps \u002F Amazon DocumentDB Cluster Provisioning & MongoDB-Compatible\nDatabase Management.\n\n## AWS documentation\n\n- **DocumentDB Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fdocumentdb\u002Flatest\u002Fdeveloperguide\u002Fwhat-is.html\n- **Create a cluster** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fdocumentdb\u002Flatest\u002Fdeveloperguide\u002Fdb-cluster-create.html\n- **Change streams** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fdocumentdb\u002Flatest\u002Fdeveloperguide\u002Fchange_streams.html\n- **Storage autoscaling** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fdocumentdb\u002Flatest\u002Fdeveloperguide\u002Flimits.html#limits-storage\n- **Global clusters** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fdocumentdb\u002Flatest\u002Fdeveloperguide\u002Fglobal-clusters.html\n- **Indexing** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fdocumentdb\u002Flatest\u002Fdeveloperguide\u002Fbest_practices.html\n- **Connecting with mongo shell** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fdocumentdb\u002Flatest\u002Fdeveloperguide\u002Fconnect_programmatically.html\n- **CloudWatch metrics** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fdocumentdb\u002Flatest\u002Fdeveloperguide\u002Fcloud_watch.html\n","# DocumentDB Cluster Deployer\n\nAn AWS CloudOps agent skill that provisions Amazon DocumentDB (MongoDB\ncompatibility) clusters with correct defaults. The skill walks the\noperator through cluster creation, instance-type selection (r5\u002Ft3),\nstorage autoscaling with ceiling, multi-AZ replication, parameter\ngroups, subnet groups, security groups, KMS encryption, backup\nretention, global clusters, change streams, and indexing strategy,\ncaptures workload and durability decisions, explains why each default\nmatters, and emits a READY_TO_DEPLOY checklist with copy-pasteable\nverification commands.\n\n## Activation keywords\nActivation keyword list moved to\n[references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## STRICT output contract\n\nWhen this skill is invoked with a DocumentDB-provisioning request\n(create a cluster, add instances, configure change streams, set up a\nglobal cluster, enable storage autoscaling, or a partial configuration),\nthe agent MUST respond with the READY_TO_DEPLOY checklist defined in the\n\"Output format\" section using the literal all-caps labels\n`DOCUMENTDB_CLUSTER:`, `VERDICT:`, `CHECKLIST:`, and\n`VERIFICATION_COMMANDS:`. Do NOT preface the checklist with prose,\nheadings, or disclaimers — emit the block as the first lines of the\nresponse. This contract is what assertion-based evals and downstream\nprovisioning pipelines rely on; deviating from the literal labels breaks\nautomation silently.\n\nIf any prerequisite is missing, the verdict is `PREREQUISITES_MISSING`\nwith a specific gap citation in the checklist (marked `[✗]`), and\n`READY_TO_DEPLOY` MUST NOT also appear.\n\n## Quick navigation\n\n| Section | When to read |\n|---|---|\n| Prerequisites | Always — verify before provisioning |\n| Step 1 — Cluster architecture (cluster + instances) | Core model |\n| Step 2 — Instance types (r5 vs t3) | Sizing |\n| Step 3 — Storage autoscaling | Storage growth |\n| Step 4 — Multi-AZ replication | High availability |\n| Step 5 — Subnet groups and security groups | Network |\n| Step 6 — Parameter groups | Configuration |\n| Step 7 — KMS encryption | Security |\n| Step 8 — Backup retention and point-in-time recovery | Durability |\n| Step 9 — Change streams for CDC | Change data capture |\n| Step 10 — Indexing strategy (no query optimizer) | Performance |\n| Step 11 — Global clusters | Cross-region DR |\n| Step 12 — MongoDB compatibility and connecting | Client access |\n| Step 13 — TLS configuration | Security |\n| Step 14 — CloudWatch metrics | Observability |\n| NEVER do these things | Review before signing off |\n| Output format | The literal checklist template |\n| references\u002Fstorage-and-changestreams.md | Storage autoscaling + CDC detail |\n| references\u002Fglobal-clusters-and-indexing.md | Global cluster + indexing detail |\n\n## Mindset\n\n**One-line takeaway:** Amazon DocumentDB is a managed MongoDB-compatible\ndatabase that separates compute (instances) from storage (cluster volume\nthat auto-expands). There is NO query optimizer — you MUST create indexes\nBEFORE running queries, or every query is a collection scan. Change\nstreams are the recommended CDC mechanism.\n\nThree misconceptions dominate DocumentDB misdesign at provisioning time:\n\n- **\"DocumentDB has a query optimizer like MongoDB.\"** It does NOT.\n  DocumentDB lacks a query planner. Every query without a matching index\n  is a full collection scan. Unlike MongoDB (which can create indexes on\n  the fly or choose among indexes), DocumentDB requires explicit index\n  creation BEFORE issuing queries. Failing to index before query is the\n  #1 cause of production latency in DocumentDB.\n\n- **\"Storage autoscaling means I never need to think about storage.\"** It\n  does not. DocumentDB storage autoscaling automatically grows the\n  cluster volume, but there is a ceiling. If storage hits the ceiling\n  (default 50 TB, or your configured maximum), the cluster stops\n  accepting writes. You MUST set the autoscaling ceiling to match your\n  projected growth, and monitor storage utilization against it.\n\n- **\"Change streams are optional for CDC.\"** They are the recommended\n  approach. DocumentDB change streams provide ordered, resumable change\n  events. Without change streams, you are limited to polling (full table\n  scans), which is expensive and imprecise. Enable change streams at\n  cluster creation if any downstream system needs CDC.\n\n## Configuration dependency graph (novel heuristic)\nFull dependency table and cross-dependency gotchas moved to\n[references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## Expert heuristic: the storage autoscaling ceiling\nAutoscaling-ceiling heuristic moved to\n[references\u002Fstorage-and-changestreams.md](references\u002Fstorage-and-changestreams.md).\n\n## Expert heuristic: index before query (no query optimizer)\nIndex-type selection heuristic moved to\n[references\u002Fglobal-clusters-and-indexing.md](references\u002Fglobal-clusters-and-indexing.md).\n\n## Expert heuristic: change streams for CDC\nChange-stream flow and resume-token gotcha moved to\n[references\u002Fstorage-and-changestreams.md](references\u002Fstorage-and-changestreams.md).\n\n## Expert heuristic: index build blocking writes (foreground vs background)\nForeground-vs-background index build behavior moved to\n[references\u002Fglobal-clusters-and-indexing.md](references\u002Fglobal-clusters-and-indexing.md).\n\n## Expert heuristic: MongoDB API compatibility gaps\nUnsupported aggregation stages and feature gaps moved to\n[references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## Expert heuristic: TLS certificate rotation downtime\nTLS certificate rotation lifecycle moved to\n[references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## Prerequisites (verify before provisioning)\n\nBefore emitting provisioning commands, verify these prerequisites. If\nany are missing, the verdict is **PREREQUISITES_MISSING**.\n\n| Prerequisite | Why it matters | How to verify |\n|---|---|---|\n| VPC with at least 2 AZs | DocumentDB requires multi-AZ subnet group for HA | `aws ec2 describe-subnets` |\n| Subnet group (or subnets to create one) | Cluster needs a subnet group | `aws docdb describe-db-subnet-groups` |\n| Security group allowing port 27017 | Client connectivity | `aws ec2 describe-security-groups` |\n| KMS key (if customer-managed encryption) | Encryption at rest | `aws kms describe-key --key-id \u003Calias>` |\n| Instance class decision (r5 vs t3) | Compute sizing | Assess workload |\n| Backup retention decision (1-35 days) | PITR window | Assess compliance needs |\n| Storage autoscaling ceiling | Write outage prevention | Assess projected growth |\n| MongoDB compatibility version (4.0\u002F5.0) | Feature set depends on version | Assess driver compatibility |\n\nIf any prerequisite is missing, output `VERDICT: PREREQUISITES_MISSING`\nand cite the specific gap.\n\n## Step 1 — Cluster architecture (cluster + instances)\n\nDocumentDB uses a cluster architecture: one cluster endpoint, a primary\ninstance, and 0-15 replica instances. Storage is a shared cluster volume\n(separated from compute).\n\n| Component | Role | API |\n|---|---|---|\n| Cluster | Endpoint management, storage volume, backups, parameter group | `create-db-cluster` |\n| Primary instance | Read + write | `create-db-instance` |\n| Replica instances | Read-only (up to 15) | `create-db-instance` |\n| Cluster endpoint | Writer endpoint (always points to primary) | automatic |\n| Reader endpoint | Round-robin across replicas | automatic |\n\n**The cluster is the storage and management boundary. Instances are\ncompute.** Adding instances adds read capacity; storage is shared.\n\n## Step 2 — Instance types (r5 vs t3)\n\n| Instance class | vCPU | Memory (GiB) | Use case |\n|---|---|---|---|\n| db.r5.large | 2 | 16 | Small production |\n| db.r5.xlarge | 4 | 32 | Medium production |\n| db.r5.2xlarge | 8 | 64 | Large production |\n| db.r5.4xlarge | 16 | 128 | X-large production |\n| db.r5.8xlarge | 32 | 256 | XX-large production |\n| db.r5.16xlarge | 64 | 512 | Max primary |\n| db.r5.24xlarge | 96 | 768 | Largest primary |\n| db.t3.medium | 2 | 4 | Development\u002Ftest |\n\n**r5 instances** are memory-optimized — recommended for production.\n**t3.medium** is burstable — suitable for development only. NOT\nrecommended for production because CPU credits deplete under sustained\nload.\n\n## Step 3 — Storage autoscaling\n\nDocumentDB storage auto-grows from 10 GB. Set an explicit ceiling to\nprevent STORAGE_FULL write outages.\n\n```bash\naws docdb create-db-cluster \\\n  --db-cluster-identifier my-docdb-cluster \\\n  --engine docdb \\\n  --master-username admin \\\n  --master-user-password 'UseAStrongPassword123!' \\\n  --db-subnet-group-name my-subnet-group \\\n  --vpc-security-group-ids sg-abc123 \\\n  --backup-retention-period 7 \\\n  --deletion-protection \\\n  --region us-east-1\n\n# Monitor free storage\naws cloudwatch get-metric-statistics \\\n  --namespace AWS\u002FDocDB \\\n  --metric-name FreeStorageSpace \\\n  --dimensions Name=DBClusterIdentifier,Value=my-docdb-cluster \\\n  --start-time $(date -u -v-1H +%Y-%m-%dT%H:%M:%S) \\\n  --end-time $(date -u +%Y-%m-%dT%H:%M:%S) \\\n  --period 300 --statistics Average \\\n  --region us-east-1\n```\n\n**Expert rule:** set ceiling = projected 12-month growth x 1.5. Alert\nwhen free storage drops below 20% of ceiling.\n\n## Step 4 — Multi-AZ replication\n\nDocumentDB provides multi-AZ availability with a primary instance in one\nAZ and replicas in other AZs. If the primary fails, DocumentDB\nautomatically promotes a replica (failover takes ~30 seconds).\n\n```bash\n# Create the primary instance\naws docdb create-db-instance \\\n  --db-instance-identifier my-docdb-primary \\\n  --db-instance-class db.r5.large \\\n  --engine docdb \\\n  --db-cluster-identifier my-docdb-cluster \\\n  --region us-east-1\n\n# Create a replica in a different AZ with failover priority\naws docdb create-db-instance \\\n  --db-instance-identifier my-docdb-replica-1 \\\n  --db-instance-class db.r5.large \\\n  --engine docdb \\\n  --db-cluster-identifier my-docdb-cluster \\\n  --preferred-availability-zone us-east-1b \\\n  --promotion-tier 0 \\\n  --region us-east-1\n```\n\n**Failover priority:** each instance has a priority (0 = highest). The\nhighest-priority replica is promoted during failover.\n\n## Step 5 — Subnet groups and security groups\n\n```bash\n# Subnet group (requires at least 2 AZs)\naws docdb create-db-subnet-group \\\n  --db-subnet-group-name my-subnet-group \\\n  --db-subnet-group-description \"DocumentDB subnet group\" \\\n  --subnet-ids subnet-aaa111 subnet-bbb222 subnet-ccc333 \\\n  --region us-east-1\n\n# Security group (port 27017 from app tier)\naws ec2 authorize-security-group-ingress \\\n  --group-id sg-docdb-cluster \\\n  --ip-permissions \\\n    \"IpProtocol=tcp,FromPort=27017,ToPort=27017,IpRanges=[{CidrIp=10.0.0.0\u002F16}]\" \\\n  --region us-east-1\n```\n\n## Step 6 — Parameter groups\n\nParameter groups control cluster-level settings including change streams,\nprofiling, and TLS.\n\n```bash\naws docdb create-db-cluster-parameter-group \\\n  --db-cluster-parameter-group-name my-param-group \\\n  --db-parameter-group-family docdb4.0 \\\n  --description \"DocumentDB parameter group with change streams\" \\\n  --region us-east-1\n\n# Enable change streams (retention in seconds: 86400 = 1 day, 172800 = 2 days, 259200 = 3 days)\naws docdb modify-db-cluster-parameter-group \\\n  --db-cluster-parameter-group-name my-param-group \\\n  --parameters \\\n    ParameterName=change_streams_log_retention_duration,ParameterValue=172800,ApplyMethod=immediate \\\n    ParameterName=audit_logs,ParameterValue=enabled,ApplyMethod=immediate \\\n  --region us-east-1\n```\n\n**Key parameters:**\n\n| Parameter | Default | Expert value | Why |\n|---|---|---|---|\n| change_streams_log_retention_duration | 0 (disabled) | 172800 (2 days) | Enables CDC with 48h recovery buffer |\n| audit_logs | disabled | enabled | Compliance and security auditing |\n| tls | enabled | enabled | Always keep TLS enabled in production |\n\n## Step 7 — KMS encryption\n\n```bash\naws docdb create-db-cluster \\\n  --db-cluster-identifier my-docdb-cluster \\\n  --engine docdb \\\n  --master-username admin \\\n  --master-user-password 'UseAStrongPassword123!' \\\n  --kms-key-id arn:aws:kms:us-east-1:123456789012:key\u002Fabc123 \\\n  --storage-encrypted \\\n  --db-subnet-group-name my-subnet-group \\\n  --vpc-security-group-ids sg-abc123 \\\n  --region us-east-1\n```\n\n**Critical:** KMS key cannot be changed after cluster creation without\nsnapshot-restore. Choose customer-managed key at creation for maximum\ncontrol.\n\n## Step 8 — Backup retention and point-in-time recovery\n\n```bash\n# Set backup retention at creation (1-35 days)\naws docdb create-db-cluster \\\n  --db-cluster-identifier my-docdb-cluster \\\n  --engine docdb \\\n  --backup-retention-period 7 \\\n  ...\n\n# Modify backup retention\naws docdb modify-db-cluster \\\n  --db-cluster-identifier my-docdb-cluster \\\n  --backup-retention-period 14 \\\n  --apply-immediately \\\n  --region us-east-1\n\n# Restore to a point in time\naws docdb restore-db-cluster-to-point-in-time \\\n  --source-db-cluster-identifier my-docdb-cluster \\\n  --db-cluster-identifier my-docdb-restored \\\n  --restore-to-time 2026-08-05T12:00:00Z \\\n  --region us-east-1\n```\n\nPoint-in-time recovery is automatically enabled when backup retention is\n> 0.\n\n## Step 9 — Change streams for CDC\nEnablement commands and driver consumption example moved to\n[references\u002Fstorage-and-changestreams.md](references\u002Fstorage-and-changestreams.md).\n\n## Step 10 — Indexing strategy (no query optimizer)\nConnect and create-index commands moved to\n[references\u002Fglobal-clusters-and-indexing.md](references\u002Fglobal-clusters-and-indexing.md).\n\n## Step 11 — Global clusters\nGlobal cluster creation commands moved to\n[references\u002Fglobal-clusters-and-indexing.md](references\u002Fglobal-clusters-and-indexing.md).\n\n## Step 12 — MongoDB compatibility and connecting\n\n| Engine version | MongoDB wire compatibility | Key features |\n|---|---|---|\n| 5.0.0 | MongoDB 5.0 | Time series collections, stable API |\n| 4.0.0 | MongoDB 4.0 | Transactions, change streams improvements |\n| 3.6.0 | MongoDB 3.6 | Baseline — change streams, retries |\n\n```bash\n# Connect via mongo shell (with TLS)\nmongo \"mongodb:\u002F\u002Fadmin:password@cluster-endpoint:27017\u002F?tls=true&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false\" \\\n  --tlsCAFile rds-combined-ca-bundle.pem\n\n# Download the CA bundle\nwget https:\u002F\u002Fs3.amazonaws.com\u002Frds-downloads\u002Frds-combined-ca-bundle.pem\n```\n\n**Connection string:** `tls=true` (required), `replicaSet=rs0`,\n`readPreference=secondaryPreferred`, `retryWrites=false` (DocumentDB\ndoes not support retryable writes).\n\n## Step 13 — TLS configuration\n\nTLS is enabled by default on DocumentDB clusters. Disabling TLS is NOT\nrecommended for production.\n\n```bash\n# Check TLS status (parameter group)\naws docdb describe-db-cluster-parameters \\\n  --db-cluster-parameter-group-name my-param-group \\\n  --query 'Parameters[?ParameterName==`tls`]' \\\n  --region us-east-1\n```\n\n**Expert rule:** always keep TLS enabled. Disabling TLS exposes database\ntraffic in plaintext. Only disable for local development testing.\n\n## Step 14 — CloudWatch metrics\nMetrics and alert-threshold table moved to\n[references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md).\n\n## NEVER do these things\n\n1. **NEVER deploy queries without creating indexes first.** DocumentDB\n   has NO query optimizer. A query without a matching index is a full\n   collection scan.\n\n2. **NEVER leave the storage autoscaling ceiling at default without\n   assessment.** Hitting the ceiling causes STORAGE_FULL and ALL writes\n   are rejected. Set the ceiling with 50% headroom.\n\n3. **NEVER disable TLS in production.** TLS is enabled by default for a\n   reason. Only disable for local development testing.\n\n4. **NEVER use t3.medium instances for production.** T3 instances are\n   burstable — CPU credits deplete under sustained load. Use r5.\n\n5. **NEVER create a single-instance cluster for production.** Always\n   deploy at least 1 primary + 1 replica in different AZs.\n\n6. **NEVER forget to enable change streams at creation.** Enabling\n   later requires a parameter group change and cluster reboot.\n\n7. **NEVER use retryWrites=true in the connection string.** DocumentDB\n   does not support retryable writes. Always set `retryWrites=false`.\n\n8. **NEVER assume global cluster failover is automatic.** Secondary\n   promotion requires scripting (Lambda + EventBridge).\n\n9. **NEVER change the KMS key after cluster creation without planning\n   downtime.** Changing encryption requires a snapshot-restore cycle.\n\n10. **NEVER skip deletion protection for production clusters.**\n\n## Output format\n\n```text\nDOCUMENTDB_CLUSTER: \u003Ccluster-identifier> (\u003Cengine-version>)\nVERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING\nCHECKLIST:\n  [✓|✗] Cluster identifier: \u003Cname>\n  [✓|✗] Engine version: \u003C4.0|5.0> (MongoDB compatibility)\n  [✓|✗] Instance class: \u003Cdb.r5.large|db.t3.medium> — \u003Cpurpose>\n  [✓|✗] Instance count: \u003Cn> primary + \u003Cn> replicas (multi-AZ: yes|no)\n  [✓|✗] Subnet group: \u003Cname> (spans \u003Cn> AZs)\n  [✓|✗] Security group: \u003Csg-id> (port 27017 from \u003Ccidr>)\n  [✓|✗] Parameter group: \u003Cname> (change_streams: \u003Cenabled|disabled>, retention: \u003Cn> days)\n  [✓|✗] KMS encryption: \u003Ccustomer-managed|aws-managed> (\u003Ckey-id>)\n  [✓|✗] Backup retention: \u003Cn> days (PITR: enabled)\n  [✓|✗] Storage autoscaling ceiling: \u003Cn> TB (headroom: \u003Cn>%)\n  [✓|✗] Change streams: \u003Cenabled|disabled> (retention: \u003Cn> days)\n  [✓|✗] Indexing strategy: \u003Csingle|compound|text|ttl|unique> indexes documented\n  [✓|✗] Global cluster: \u003Cnone|primary in \u003Cregion>, secondary in \u003Cregion>>\n  [✓|✗] TLS: enabled (production default)\n  [✓|✗] Deletion protection: enabled\n  [✓|✗] Tags: \u003Ckey=value list>\nVERIFICATION_COMMANDS:\n  aws docdb describe-db-clusters --db-cluster-identifier \u003Ccluster-id> --region \u003Cregion>\n  aws docdb describe-db-instances --query 'DBInstances[?DBClusterIdentifier==`\u003Ccluster-id>`]' --region \u003Cregion>\n  aws cloudwatch get-metric-statistics --namespace AWS\u002FDocDB --metric-name DatabaseCpuUtilization --dimensions Name=DBClusterIdentifier,Value=\u003Ccluster-id> --region \u003Cregion>\n```\n\n### Worked example — production multi-AZ cluster with change streams\n\n```text\nDOCUMENTDB_CLUSTER: orders-docdb (5.0.0)\nVERDICT: READY_TO_DEPLOY\nCHECKLIST:\n  [✓] Cluster identifier: orders-docdb\n  [✓] Engine version: 5.0.0 (MongoDB 5.0 compatibility)\n  [✓] Instance class: db.r5.large — production\n  [✓] Instance count: 1 primary + 2 replicas (multi-AZ: yes)\n  [✓] Subnet group: docdb-subnet-group (spans 3 AZs)\n  [✓] Security group: sg-docdb-001 (port 27017 from 10.0.0.0\u002F16)\n  [✓] Parameter group: docdb-prod-params (change_streams: enabled, retention: 2 days)\n  [✓] KMS encryption: customer-managed (arn:aws:kms:us-east-1:123456789012:key\u002Fabc123)\n  [✓] Backup retention: 7 days (PITR: enabled)\n  [✓] Storage autoscaling ceiling: 10 TB (headroom: 50%)\n  [✓] Change streams: enabled (retention: 2 days)\n  [✓] Indexing strategy: compound {status, created_at} + single {email} + text {name, description}\n  [✓] Global cluster: none\n  [✓] TLS: enabled (production default)\n  [✓] Deletion protection: enabled\n  [✓] Tags: Environment=production, Application=orders\nVERIFICATION_COMMANDS:\n  aws docdb describe-db-clusters --db-cluster-identifier orders-docdb --region us-east-1\n  aws docdb describe-db-instances --query 'DBInstances[?DBClusterIdentifier==`orders-docdb`]' --region us-east-1\n  aws cloudwatch get-metric-statistics --namespace AWS\u002FDocDB --metric-name DatabaseCpuUtilization --dimensions Name=DBClusterIdentifier,Value=orders-docdb --region us-east-1\n```\n\n## Error handling\nFailure-mode deep dives (STORAGE_FULL, slow queries, change streams,\nTLS handshake, replica lag) moved to [references\u002Ferror-handling.md](references\u002Ferror-handling.md).\n\n## References (load on demand)\n\n- [references\u002Fstorage-and-changestreams.md](references\u002Fstorage-and-changestreams.md) — storage autoscaling + CDC detail (now also holds the autoscaling-ceiling and change-stream heuristics and the Step 9 commands moved from this file)\n- [references\u002Fglobal-clusters-and-indexing.md](references\u002Fglobal-clusters-and-indexing.md) — global cluster + indexing detail (now also holds the indexing heuristics and Step 10\u002F11 commands moved from this file)\n- [references\u002Ferror-handling.md](references\u002Ferror-handling.md) — STORAGE_FULL, slow queries, change-stream, TLS, replica-lag failure modes (moved from this file)\n- [references\u002Fadvanced-patterns.md](references\u002Fadvanced-patterns.md) — dependency graph, MongoDB API gaps, TLS rotation, CloudWatch metrics, activation keywords (moved from this file)\n\n## Domain\n\nAWS CloudOps \u002F Amazon DocumentDB Cluster Provisioning & MongoDB-Compatible\nDatabase Management.\n\n## AWS documentation\n\n- **DocumentDB Guide** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fdocumentdb\u002Flatest\u002Fdeveloperguide\u002Fwhat-is.html\n- **Create a cluster** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fdocumentdb\u002Flatest\u002Fdeveloperguide\u002Fdb-cluster-create.html\n- **Change streams** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fdocumentdb\u002Flatest\u002Fdeveloperguide\u002Fchange_streams.html\n- **Storage autoscaling** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fdocumentdb\u002Flatest\u002Fdeveloperguide\u002Flimits.html#limits-storage\n- **Global clusters** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fdocumentdb\u002Flatest\u002Fdeveloperguide\u002Fglobal-clusters.html\n- **Indexing** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fdocumentdb\u002Flatest\u002Fdeveloperguide\u002Fbest_practices.html\n- **Connecting with mongo shell** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fdocumentdb\u002Flatest\u002Fdeveloperguide\u002Fconnect_programmatically.html\n- **CloudWatch metrics** — https:\u002F\u002Fdocs.aws.amazon.com\u002Fdocumentdb\u002Flatest\u002Fdeveloperguide\u002Fcloud_watch.html\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":41},{"tags":25,"phase":26,"author":27,"domain":28,"family":29,"version":30,"keywords":31,"task_type":32,"complexity":33,"entry_point":34,"skill_class":35,"when_to_use":36,"dependencies":37,"requires_llm":38,"verdict_shape":39,"lifecycle_status":40,"supports_pipeline":38},"aws, documentdb, mongodb, cloudops, deploy, databases, provisioning, cluster, change-streams, global-cluster, storage-autoscaling, kms, backup, indexing","1","Jacky Chan — AWS Community Builder","aws-cloudops","Databases","0.1.0","aws, documentdb, mongodb, document database, cloudops, deploy, provisioning, cluster, change streams, global cluster, storage autoscaling, kms encryption, backup retention, indexing, multi-az, parameter group, subnet group, tls","deploy","high","false","capability","Invoke when the user wants to create an Amazon DocumentDB cluster, add instances to a cluster, configure change streams for CDC, set up a global cluster for cross-region disaster recovery, enable storage autoscaling, manage backup retention, create indexes, or connect via mongo shell. Do NOT invoke for Amazon RDS (use RDS skills), Amazon DynamoDB (use DynamoDB skills), Amazon ElastiCache (use ElastiCache skills), or Amazon Neptune (use Neptune skills).","aws-orchestrator","true","READY_TO_DEPLOY | PREREQUISITES_MISSING","active","Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with docdb access. Works with Terraform aws_docdb_cluster \u002F aws_docdb_cluster_instance \u002F aws_docdb_subnet_group \u002F aws_docdb_global_cluster resources and CloudFormation AWS::DocDB::DBCluster templates.","main","eeace51bd5dd1db2030729d83eeab988861553aa","skills\u002Fdocumentdb-cluster-deployer",0,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills","https:\u002F\u002Fgithub.com\u002Fjhkchan","CTO & Co-Founder @Beever-AI  & @votee. CAISP. AWS Community Builder. Organizer@GDGCloudHK. MongoDB Champion. Technopreneur + Infornographer.","2026-09-24 08:54:10",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add jhkchan\u002Faws-agent-skills --skill documentdb-cluster-deployer",{"tool":56,"command":57},"bunx","bunx skills add jhkchan\u002Faws-agent-skills --skill documentdb-cluster-deployer",{"tool":59,"command":60},"pnpm","pnpm dlx skills add jhkchan\u002Faws-agent-skills --skill documentdb-cluster-deployer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdocumentdb-cluster-deployer\u002FSKILL.md",true,[64,70,74,78,82,86,90,94,98,102,106,110,114,118,122,126,130,134,138],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"eval\u002Ftest-cases.yaml","REFERENCE","参考文档",5638,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdocumentdb-cluster-deployer\u002Feval\u002Ftest-cases.yaml",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"evals\u002Fbaselines\u002Fchange-streams-cdc.md",915,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdocumentdb-cluster-deployer\u002Fevals\u002Fbaselines\u002Fchange-streams-cdc.md",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"evals\u002Fbaselines\u002Fglobal-cluster-dr.md",1208,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdocumentdb-cluster-deployer\u002Fevals\u002Fbaselines\u002Fglobal-cluster-dr.md",{"path":79,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":80,"sourceHtmlUrl":81},"evals\u002Fbaselines\u002Fmissing-subnet-group.md",708,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdocumentdb-cluster-deployer\u002Fevals\u002Fbaselines\u002Fmissing-subnet-group.md",{"path":83,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":84,"sourceHtmlUrl":85},"evals\u002Fbaselines\u002Fproduction-multi-az-changestreams.md",1093,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdocumentdb-cluster-deployer\u002Fevals\u002Fbaselines\u002Fproduction-multi-az-changestreams.md",{"path":87,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":88,"sourceHtmlUrl":89},"evals\u002Fbaselines\u002Ft3-development-cluster.md",935,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdocumentdb-cluster-deployer\u002Fevals\u002Fbaselines\u002Ft3-development-cluster.md",{"path":91,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":92,"sourceHtmlUrl":93},"evals\u002Feval_config.yaml",1755,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdocumentdb-cluster-deployer\u002Fevals\u002Feval_config.yaml",{"path":95,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":96,"sourceHtmlUrl":97},"evals\u002Fevals.json",9664,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdocumentdb-cluster-deployer\u002Fevals\u002Fevals.json",{"path":99,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":100,"sourceHtmlUrl":101},"evals\u002Fprompts\u002Fchange-streams-cdc.md",615,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdocumentdb-cluster-deployer\u002Fevals\u002Fprompts\u002Fchange-streams-cdc.md",{"path":103,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":104,"sourceHtmlUrl":105},"evals\u002Fprompts\u002Fglobal-cluster-dr.md",524,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdocumentdb-cluster-deployer\u002Fevals\u002Fprompts\u002Fglobal-cluster-dr.md",{"path":107,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":108,"sourceHtmlUrl":109},"evals\u002Fprompts\u002Fmissing-subnet-group.md",347,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdocumentdb-cluster-deployer\u002Fevals\u002Fprompts\u002Fmissing-subnet-group.md",{"path":111,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":112,"sourceHtmlUrl":113},"evals\u002Fprompts\u002Fproduction-multi-az-changestreams.md",798,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdocumentdb-cluster-deployer\u002Fevals\u002Fprompts\u002Fproduction-multi-az-changestreams.md",{"path":115,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":116,"sourceHtmlUrl":117},"evals\u002Fprompts\u002Ft3-development-cluster.md",455,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdocumentdb-cluster-deployer\u002Fevals\u002Fprompts\u002Ft3-development-cluster.md",{"path":119,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":120,"sourceHtmlUrl":121},"examples\u002FREADME.md",8343,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdocumentdb-cluster-deployer\u002Fexamples\u002FREADME.md",{"path":123,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":124,"sourceHtmlUrl":125},"references\u002Fadvanced-patterns.md",6701,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdocumentdb-cluster-deployer\u002Freferences\u002Fadvanced-patterns.md",{"path":127,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":128,"sourceHtmlUrl":129},"references\u002Ferror-handling.md",1122,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdocumentdb-cluster-deployer\u002Freferences\u002Ferror-handling.md",{"path":131,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":132,"sourceHtmlUrl":133},"references\u002Fglobal-clusters-and-indexing.md",13430,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdocumentdb-cluster-deployer\u002Freferences\u002Fglobal-clusters-and-indexing.md",{"path":135,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":136,"sourceHtmlUrl":137},"references\u002Fstorage-and-changestreams.md",13378,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdocumentdb-cluster-deployer\u002Freferences\u002Fstorage-and-changestreams.md",{"path":139,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":140,"sourceHtmlUrl":141},"skill.usf.yaml",4466,"https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdocumentdb-cluster-deployer\u002Fskill.usf.yaml",[143,150,157,164,171,178],{"skillNo":144,"name":145,"nameZh":6,"description":146,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":149,"publishedAt":19},"01M7ADVD60X4PCAPKSE58P9NDC","xray-tracing-deployer","Deploys AWS X-Ray distributed tracing with production-grade configuration: X-Ray daemon deployment (EC2 systemd, ECS sidecar, EKS DaemonSet, Lambda built-in), SDK instrumentation (Java, Python, Node.js, Go, .NET) with annotations and metadata, sampling rules (default reservoir + rate vs custom rules with URL \u002F method \u002F service-name predicates), service map generation, trace query and retrieval, groups and insights, CloudWatch ServiceLens integration, IAM permissions (PutTraceSegments, GetSamplingRules), and latest features (Lambda Powertools tracing, OpenTelemetry \u002F ADOT Collector support, W3C trace context). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when enabling X-Ray on a new application, adding tracing to ECS \u002F EKS \u002F Lambda, validating a sampling configuration, or generating daemon deployment CLI and IaC templates. Triggers: X-Ray, distributed tracing, X-Ray daemon, sampling rules, service map, X-Ray SDK, OpenTelemetry, ADOT, Lambda Powertools, CloudWatch ServiceLens.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxray-tracing-deployer\u002FSKILL.md",[],[],{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":19},"01M7ADTVJ7DCBM9CB1FY51GH7J","wellarchitected-workload-auditor","Audits AWS Well-Architected Tool workloads for review staleness, per-pillar high-risk issue counts, milestone tracking gaps, and remediation plan completeness. Emits a deterministic verdict (STALE_REVIEW | HIGH_RISK | CONFIG_GAP | OK) per workload with per-pillar risk breakdown, milestone trend analysis, and specific remediation. Use when reviewing Well-Architected workloads, checking WA review freshness, auditing high-risk issues per pillar, validating milestone coverage, or tracking remediation plans.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-workload-auditor\u002FSKILL.md",[],[],{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":19},"01M7ADT59G6FTTNZYHT2QRPNNP","wellarchitected-review-operator","Operates AWS Well-Architected Tool reviews end-to-end — creates workloads, runs pillar reviews (operational excellence, security, reliability, performance, cost optimization, sustainability, Prosperity), answers questions with risk-tier rationale, generates reports and improvement plans, creates milestones, and integrates with Trusted Advisor and Well-Architected Labs. Runs deterministic pre-checks (workload existence, lens availability, pillar coverage), emits the exact update-answer \u002F get-consolidated-report CLI behind a CONFIRM gate, and verifies risk-tier transitions. Emits READY | BLOCKED | COMPLETED. Use when creating a workload, answering pillar questions, generating an improvement plan, creating a milestone, or integrating with Trusted Advisor. Triggers: well-architected tool, well architected review, workload review, pillar, operational excellence, security, reliability, performance, cost optimization, sustainability, prosperity, improvement plan, milestone, trusted advisor.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwellarchitected-review-operator\u002FSKILL.md",[],[],{"skillNo":165,"name":166,"nameZh":6,"description":167,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":168,"categories":169,"keywords":170,"publishedAt":19},"01M7ADSH5JA9QHNPPHQCD7EVA7","wafv2-web-acl-deployer","Provisions AWS WAFv2 Web ACLs with correct production defaults: scope selection (CLOUDFRONT vs REGIONAL), managed rule groups (AWSManagedRulesCommonRuleSet, SQLiRuleSet, LinuxRuleSet, WindowsRuleSet, IPReputationList, BotControlRuleSet, AmazonIpReputationList, ATP), custom rules (byte match, IP set, regex pattern, geo match, size constraint, rate-based), rule priority ordering, logging destinations (Kinesis Firehose, CloudWatch Logs, S3), resource association (ALB, API Gateway, CloudFront), rate-based rules with aggregate keys (IP, forwarded IP), Challenge and CAPTCHA actions, and account takeover prevention. Emits a READY_TO_DEPLOY checklist. Use when creating a Web ACL, attaching managed rules, configuring rate limiting, enabling WAF logging, associating a Web ACL with an ALB\u002FAPI Gateway\u002FCloudFront, or configuring CAPTCHA\u002FChallenge actions. Triggers: create WAF Web ACL, WAFv2, managed rule groups, WAF rate limiting, WAF logging, WAF CAPTCHA, WAF Challenge action, bot control, ATP managed rules.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-deployer\u002FSKILL.md",[],[],{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":177,"publishedAt":19},"01M7ADRYFAT8R73FBNCHRC573X","wafv2-web-acl-auditor","Audits AWS WAFv2 Web ACL configurations to determine whether the ACL provides effective protection: default-action posture (Allow vs Block), managed-rule-group coverage gaps, rule effectiveness (BLOCK vs COUNT, shadow\u002Fbypass rules, stale exclusions), rate-based rule correctness, logging and visibility configuration, and text-transformation bypass vectors. Emits a deterministic verdict per Web ACL. Use when reviewing a WAFv2 Web ACL for security posture, checking managed-rule coverage, validating rate-limit configuration, auditing WAF logging, or hardening a WAF before production deployment. Triggers: WAF, WAFv2, Web ACL, managed rule group, AWSManagedRules, rate-based rule, CAPTCHA, Challenge, OverrideAction, Count mode, forwarded IP, Bot Control, ATP, text transformation, WAF logging, WAF visibility, OWASP, SQLi, XSS, RFI.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwafv2-web-acl-auditor\u002FSKILL.md",[],[],{"skillNo":179,"name":180,"nameZh":6,"description":181,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":182,"categories":183,"keywords":184,"publishedAt":19},"01M7ADR8W7G72JX4KFGN03QK8Q","waf-rule-deployer","Provisions AWS WAFv2 rule sets with production defaults: Web ACL creation (CloudFront scope in us-east-1 vs Regional scope), rule groups (managed vs custom) with capacity planning in WCU (Web ACL Capacity Units, 1500 default per ACL), managed rule groups (AWSManagedRulesCommonRuleSet, AWSManagedRulesSQLiRuleSet, AWSManagedRulesAmazonIpReputationList, AWSManagedRulesLinuxRuleSet, AWSManagedRulesWindowsRuleSet, AWSManagedRulesUnixRuleSet), custom rules (byte-match, regex pattern set, geo-match, rate-based), IP set and regex pattern set resources, rule priority ordering (lowest number evaluated first), action types (allow, block, count, CAPTCHA, Challenge), bot control managed rule group, account takeover. Triggers: create WAF rule, WAF managed rule group, WAF custom rule, WAF byte match, WAF geo match, WAF rate based rule, WAF IP set, WAF regex pattern set, WAF WCU budget, WAF CloudFront ACL, WAF logging Kinesis Firehose, WAF bot control, WAF ATP, WAF label matching, WAF Challenge action, WAF CAPTCHA.","https:\u002F\u002Fgithub.com\u002Fjhkchan\u002Faws-agent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwaf-rule-deployer\u002FSKILL.md",[],[]]