- Products›
- Amazon DocumentDB
Amazon DocumentDB (with MongoDB compatibility) pricing
Overview
Amazon DocumentDB (with MongoDB compatibility) is a fully managed document database service that supports MongoDB workloads. With Amazon DocumentDB, you only pay for what you use, and there are no upfront costs. Amazon DocumentDB pricing has four dimensions:
On-demand instances: The amount of compute instances for a cluster (pricing per hour)
Database I/O: The amount of I/O used when reading and writing data to your cluster’s storage volume (pricing per million I/Os).
Database storage: The amount of data stored in your cluster's storage volume (pricing per GB/month).
Backup storage: The amount of backup storage used in excess of your cluster’s database storage usage (pricing per GB/month).
Your total database spend depends on the storage configuration of your database cluster. You can choose between two options:
Amazon DocumentDB Standard (pay-per-use I/O model): It is designed for customers with low to moderate I/O consumption. If you expect your I/O costs to be less than 25% of your database cluster spend, this choice might be ideal for you. In standard configuration, you are billed across all four dimensions: instance, database I/O, database storage, and backup storage. This option offers adaptability to suit your dynamic I/O needs.
Amazon DocumentDB I/O-Optimized (I/O included model): Amazon DocumentDB I/O-Optimized is designed for customers who prioritize price predictability or have I/O intensive applications. If you expect your I/O costs to exceed 25% of your database cluster spend, this option offers enhanced price performance. With Amazon DocumentDB I/O-Optimized storage configuration, you are billed across three dimensions: instance, database storage, and backup storage. You won't be charged based on I/O operations, ensuring predictable costs each billing cycle.
On-Demand instances
On-Demand Instances let you pay by the hour with no long-term commitments or upfront fees. This frees you from the cost and complexity of planning and purchasing database capacity ahead of your needs. On-Demand pricing lets you pay as you go and is ideal for development, test and other short-lived workloads.
Pricing is per instance-hour consumed, from the time an instance is launched until it is stopped or deleted. Partial instance hours are billed in one-second increments, with a 10-minute minimum charge following a billable status change such as creating, modifying, or deleting an instance.
Instance pricing applies to both primary instances, used for read-write workloads, and Amazon DocumentDB replicas, used to scale reads and enhance failover. Amazon DocumentDB uses Multi-AZ architecture to failover to one of your replicas if an outage occurs. The cost of Multi-AZ deployments is simply the cost of the primary instance plus the cost of each Amazon DocumentDB replica. To maximize availability, we recommend placing at least one replica in a different Availability Zone from the primary instance.
Region: China (Ningxia)
|
Instances Current Generation
|
Memory
|
vCPU
|
Amazon DocumentDB Standard (Price per hour)
|
Amazon DocumentDB I/O-Optimized (Price per hour)
|
|---|---|---|---|---|
|
db.r6g.large
|
16 GiB
|
2
|
¥2.1760
|
¥2.3936
|
|
db.r6g.xlarge
|
32 GiB
|
4
|
¥4.3510
|
¥4.7861
|
|
db.r6g.2xlarge
|
64 GiB
|
8
|
¥8.7120
|
¥9.5832
|
|
db.r6g.4xlarge
|
128 GiB
|
16
|
¥17.4230
|
¥19.1653
|
|
db.r6g.8xlarge
|
256 GiB
|
32
|
¥34.8460
|
¥38.3306
|
|
db.r6g.12xlarge
|
384 GiB
|
48
|
¥52.2600
|
¥57.4860
|
|
db.r6g.16xlarge
|
512 GiB
|
64
|
¥69.6920
|
¥76.6612
|
|
db.r5.large
|
16 GiB
|
2
|
¥2.2900
|
¥2.5190
|
|
db.r5.xlarge
|
32 GiB
|
4
|
¥4.5800
|
¥5.0380
|
|
db.r5.2xlarge
|
64 GiB
|
8
|
¥9.1700
|
¥10.0870
|
|
db.r5.4xlarge
|
128 GiB
|
16
|
¥18.3400
|
¥20.1740
|
|
db.r5.8xlarge
|
256 GiB
|
32
|
¥36.6800
|
¥40.3480
|
|
db.r5.12xlarge
|
384 GiB
|
48
|
¥55.0100
|
¥60.5110
|
|
db.r5.16xlarge
|
512 GiB
|
64
|
¥73.3600
|
¥80.6960
|
|
db.r5.24xlarge
|
768 GiB
|
96
|
¥110.0200
|
¥121.0220
|
|
db.t4g.medium
|
4 GiB
|
2
|
¥0.5990
|
¥0.6589
|
|
db.t3.medium
|
4 GiB
|
2
|
¥0.6300
|
¥0.6930
|
Region: China (Beijing)
|
Instances Current Generation
|
Memory
|
vCPU
|
Amazon DocumentDB Standard (Price per hour)
|
Amazon DocumentDB I/O-Optimized (Price per hour)
|
|---|---|---|---|---|
|
db.r6g.large
|
16 GiB
|
2
|
¥2.6220
|
¥2.8841
|
|
db.r6g.xlarge
|
32 GiB
|
4
|
¥5.2258
|
¥5.7483
|
|
db.r6g.2xlarge
|
64 GiB
|
8
|
¥10.4697
|
¥11.5166
|
|
db.r6g.4xlarge
|
128 GiB
|
16
|
¥20.9212
|
¥23.0133
|
|
db.r6g.8xlarge
|
256 GiB
|
32
|
¥41.8605
|
¥46.0466
|
|
db.r6g.12xlarge
|
384 GiB
|
48
|
¥62.7817
|
¥69.0599
|
|
db.r6g.16xlarge
|
512 GiB
|
64
|
¥83.7120
|
¥92.0832
|
|
db.r5.large
|
16 GiB
|
2
|
¥2.7600
|
¥3.0359
|
|
db.r5.xlarge
|
32 GiB
|
4
|
¥5.5008
|
¥6.0509
|
|
db.r5.2xlarge
|
64 GiB
|
8
|
¥11.0207
|
¥12.1228
|
|
db.r5.4xlarge
|
128 GiB
|
16
|
¥22.0223
|
¥24.2245
|
|
db.r5.8xlarge
|
256 GiB
|
32
|
¥44.0637
|
¥48.4701
|
|
db.r5.12xlarge
|
384 GiB
|
48
|
¥66.0860
|
¥72.6946
|
|
db.r5.16xlarge
|
512 GiB
|
64
|
¥88.1179
|
¥96.9296
|
|
db.r5.24xlarge
|
768 GiB
|
96
|
¥132.1720
|
¥145.3892
|
|
db.t4g.medium
|
4 GiB
|
2
|
¥0.5373
|
¥0.5910
|
|
db.t3.medium
|
4 GiB
|
2
|
¥0.5539
|
¥0.6093
|
Region: China (Beijing)
|
NVMe-backed Instances
|
Memory
|
vCPU
|
Instance Storage (GB)
|
Amazon DocumentDBStandard (Price per hour)
|
Amazon DocumentDBI/O-Optimized (Price per hour)
|
|---|---|---|---|---|---|
|
db.r6gd.xlarge
|
32 GiB
|
4
|
237
|
¥6.3754
|
¥6.3754
|
|
db.r6gd.2xlarge
|
64 GiB
|
8
|
474
|
¥12.7730
|
¥12.7730
|
|
db.r6gd.4xlarge
|
128 GiB
|
16
|
950
|
¥25.5239
|
¥25.5239
|
|
db.r6gd.8xlarge
|
256 GiB
|
32
|
1900
|
¥51.0698
|
¥51.0698
|
|
db.r6gd.12xlarge
|
384 GiB
|
48
|
2850
|
¥76.5937
|
¥76.5937
|
|
db.r6gd.16xlarge
|
512 GiB
|
64
|
3800
|
¥102.1286
|
¥102.1286
|
Amazon DocumentDB T3 and T4g medium instances run in Unlimited mode, which means that you will be charged if your average CPU utilization over a rolling 24-hour period exceeds the baseline of the instance. CPU Credits are charged at ¥0.616 per vCPU-Hour. The CPU Credit pricing is the same for all T3 and T4g instance sizes across all regions. For more information on how unlimited burstable performance instances work and how it is priced, see Unlimited mode concepts.
Serverless
Amazon DocumentDB Serverless is an on-demand, auto scaling configuration that automatically scales database capacity up or down to meet your application workload needs. It offers cost savings for variable workloads, compared to provisioning instances for peak capacity. Capacity is measured in DocumentDB Capacity Units (DCUs) billed per second. 1 DCU has approximately 2 GiB of memory with a corresponding CPU and networking, similar to what is used in Amazon DocumentDB provisioned instances.
Amazon DocumentDB Serverless instantly scales databases to support hundreds of thousands of transactions per second and supports all features of Amazon DocumentDB, including Multi-AZ deployments and read replicas.
You can choose to configure all the instances in your database cluster to use the DocumentDB Standard or I/O- Optimized storage configuration based on the price performance and price predictability needs of your application.
Resource scaling with Amazon DocumentDB Serverless
|
|
|
|---|---|
|
Starting Capacity
|
0.5 DCU |
|
Capacity Granularity
|
Fine-grained, with increments as 0.5 DCU |
|
Read Replicas
|
Up to 15 DocumentDB Replicas for read scalability |
|
Multi-AZ and SLA
|
Multi-AZ and SLA: Distribute read replicas in separate AZs for high availability. Refer Amazon DocumentDB SLA for details. |
Serverless Pricing by Region
|
Measure: DocumentDB Capacity Unit
|
Standard (per DCU hour)
|
I/O-Optimized (per DCU hour)
|
|---|---|---|
|
Beijing
|
¥ 0.819 |
¥ 0.9013 |
|
Ningxia
|
¥ 0.68 |
¥ 0.748 |
Serverless Pricing Examples
Consider a workload that needs 7 DCUs and runs for 30 minutes. We want to calculate the compute costs of running this workload on Amazon DocumentDB Serverless with the database cluster configured as DocumentDB Standard and DocumentDB I/O-Optimized in China regions, such as cn-north-1.
With Amazon DocumentDB Serverless, the minimum database capacity you can set is 0.5 DCUs. The database scales instantly from 0.5 DCUs to 7 DCUs, runs for 30 minutes, and scales down to the minimum capacity of 0.5 DCUs. The database goes from 7 DCUs to 0.5 DCUs in approximately 3 minutes. Therefore, the following is the compute cost for running this workload.
Example 1: DocumentDB Serverless pricing with DocumentDB Standard
|
Usage
|
Calculation
|
Cost
|
|---|---|---|
|
Scale from 0.5 DCUs to 7 DCUs instantly
|
|
|
|
Run at 7 DCUs for 30 minutes
|
7 DCUs * ¥ 0.8194 per DCU-hour * 30/60 hour |
¥2.87 |
|
Scale down from 7 DCUs to 0.5 DCUs in 3 minutes
|
7 DCUs* ¥ 0.8194 per DCU-hour * 3/60 hour |
¥ 0.29 |
|
Compute cost with DocumentDB Serverless (DocumentDB Standard)
|
|
¥ 3.16 |
Example 2: DocumentDB Serverless pricing with DocumentDB I/O-Optimized
|
Usage
|
Calculation
|
Cost
|
|---|---|---|
|
Scale from 0.5 DCUs to 7 DCUs instantly
|
|
|
|
Run at 7 DCUs for 30 minutes
|
7 DCUs* ¥ 0.9013 per DCU-hour * 30/60 hour |
¥3.15 |
|
Scale down from 7 DCUs to 0.5 DCUs in 3 minutes
|
7 DCUs* ¥ 0.9013 per DCU-hour * 30/60 hour |
¥ 0.315 |
|
Compute cost with DocumentDB Serverless (DocumentDB Standard)
|
|
¥ 3.47 |
Database storage and IOs
Storage consumed by your Amazon DocumentDB cluster is billed per GB-month. Billable storage includes your data, indexes, and change stream data. I/Os consumed are billed per million I/O requests. Reads and writes to your storage volume count as billable I/O requests, including reads and writes from features like change streams and TTL indexes. You pay only for the storage and IOs that your Amazon DocumentDB cluster consumes, and do not need to provision these resources in advance.
Region: China (Ningxia)
|
Component
|
Amazon DocumentDB Standard
|
Amazon DocumentDB I/O-Optimized
|
|---|---|---|
|
Storage Rate
|
¥0.596 per GB-month |
¥1.788 per GB-month |
|
I/O Rate
|
¥1.192 per 1 million requests |
Included |
Region: China (Beijing)
|
Component
|
Amazon DocumentDB Standard
|
Amazon DocumentDB I/O-Optimized
|
|---|---|---|
|
Storage Rate
|
¥0.67 per GB-month |
¥2.01 per GB-month |
|
I/O Rate
|
¥1.33 per 1 million requests |
Included |
Backup storage
Backup storage for an Amazon DocumentDB cluster is the storage associated with your automated cluster backups and any manual cluster snapshots. Increasing your backup retention period or taking manual cluster snapshots increases the backup storage consumed.
Backup storage is allocated by region. Total backup storage space is equivalent to the sum of the storage for all backups in that region.
Copying a snapshot to another region increases allocated backup storage in the destination region.
There is no additional charge for backup storage of up to 100% of your total Amazon DocumentDB cluster storage for a region. There is also no additional charge for backup storage if your backup retention period is 1 day and you do not have any manual snapshots beyond the backup retention period. Backup storage beyond this amount and manual snapshots retained outside of the backup retention period, whether your cluster is active or has been deleted, are billed at storage rates in the table below.
Region: China (Ningxia)
Backup Storage |
¥0.157 per GB-month |
Region: China (Beijing)
Backup Storage |
¥0.18 per GB-month |
Data transfer
The pricing below is based on data transferred “in” and “out” of Amazon DocumentDB
Region: China (Ningxia)
Data Transfer IN
All data transfer in |
¥0.000 per GB |
Data Transfer OUT From Amazon DocumentDB To Internet
All data transfer out |
¥0.933 per GB (Promotional) |
Region: China (Beijing)
Data Transfer IN
All data transfer in |
¥0.000 per GB |
Data Transfer OUT From Amazon DocumentDB To Internet
All data transfer out |
¥0.933 per GB (Promotional) |
Inter Region Data Transfer
Data transferred between the China (Beijing) and China (Ningxia) regions |
¥ 0.6003 per GB |
Data transferred between Amazon DocumentDB and Amazon EC2 Instances in the same Availability Zone is free.
Data transferred between Availability Zones for replication of Multi-AZ deployments is free.
Amazon DocumentDB database instances outside VPC: For data transferred between an Amazon EC2 instance and Amazon DocumentDB database instance in different Availability Zones of the same Region, there is no Data Transfer charge for traffic in or out of the Amazon DocumentDB database instance. You are only charged for the Data Transfer in or out of the Amazon EC2 instance, and standard Amazon EC2 Regional Data Transfer charges apply.
Amazon DocumentDB database instances inside VPC: For data transferred between an Amazon EC2 instance and Amazon DocumentDB database instance in different Availability Zones of the same Region, Amazon EC2 Regional Data Transfer charges apply on both sides of transfer.
Extended Support
Extended Support provides fixes for critical security issues and bugs through patch releases for three years beyond the end of standard support of Amazon DocumentDB version 3.6. You can maintain secure and stable workloads while having additional time to plan, validate application compatibility, mitigate risks, and execute your upgrades.
Pricing for extended support for Amazon DocumentDB version 3.6 is based on instance pricing (which varies by Amazon Web Services Region) and the number of years since standard support ended.
Amazon DocumentDB Extended Support pricing example
Say you are running a db.r5.xlarge instance on Amazon DocumentDB version 3.6 in the China (Ningxia) region, and the end of support date is March 30, 2026. For the first two years (March 31, 2026 to March 30, 2028), the charges for Extended Support will be ¥8.244 per instance hour. For the third year (March 31, 2028 to March 30, 2029), the charges will be ¥11.908 per instance hour.
China (Ningxia) Region
Instances Current Generation |
Amazon DocumentDB Standard Extended Support Year 1 & Year 2 (Price per hour) |
Amazon DocumentDB Standard Extended Support Year 3 (Price per hour) |
db.r5.12xlarge |
¥99.018 |
¥143.026 |
db.r5.16xlarge |
¥132.048 |
¥190.736 |
db.r5.24xlarge |
¥198.036 |
¥286.052 |
db.r5.2xlarge |
¥16.506 |
¥23.842 |
db.r5.4xlarge |
¥33.012 |
¥47.684 |
db.r5.8xlarge |
¥66.024 |
¥95.368 |
db.r5.large |
¥4.122 |
¥5.954 |
db.r5.xlarge |
¥8.244 |
¥11.908 |
db.t3.medium |
¥1.134 |
¥1.638 |
db.t4g.medium |
¥1.078 |
¥1.557 |
China (Beijing) Region
Instances Current Generation |
Amazon DocumentDB Standard Extended Support Year 1 & Year 2 (Price per hour) |
Amazon DocumentDB Standard Extended Support Year 3 (Price per hour) |
db.r5.12xlarge |
¥118.955 |
¥171.823 |
db.r5.16xlarge |
¥158.612 |
¥229.106 |
db.r5.24xlarge |
¥237.910 |
¥343.647 |
db.r5.2xlarge |
¥19.837 |
¥28.654 |
db.r5.4xlarge |
¥39.640 |
¥57.258 |
db.r5.8xlarge |
¥79.315 |
¥114.566 |
db.r5.large |
¥4.968 |
¥7.176 |
db.r5.xlarge |
¥9.901 |
¥14.302 |
db.t3.medium |
¥0.997 |
¥1.440 |
db.t4g.medium |
¥0.967 |
¥1.397 |