Amazon DocumentDB minor version upgrade
Note
This topic covers minor version upgrades within the same major version (for example, upgrading from 5.0.0 to 5.0.1). For information about upgrading to a different major version, see Amazon DocumentDB in-place major version upgrade.
You can upgrade the minor engine version of your Amazon DocumentDB cluster (for example, from 5.0.0 to 5.0.1) by modifying the cluster. Minor version upgrades can be applied immediately or during the next maintenance window.
Before performing a minor version upgrade
Before performing a minor version upgrade, the following actions may be helpful:
-
Perform the upgrade during a period of low traffic to reduce the impact of any brief downtime.
-
Verify the target minor version is a valid upgrade target for your current version by using the
describe-db-engine-versionscommand. -
For global clusters, secondary clusters must be upgraded before the primary cluster. For more information, see Global clusters patching.
Important
-
Upgrades are one-way operations — you cannot downgrade after upgrading.
-
Your cluster will experience brief downtime during the upgrade process.
Performing a minor version upgrade
Verifying the minor version upgrade
After the upgrade completes, verify the engine version using the AWS CLI:
aws docdb describe-db-clusters \ --db-cluster-identifiermydocdbcluster\ --query 'DBClusters[0].EngineVersion'
Output from this operation looks something like the following:
"5.0.1"