Migrating to Amazon DocumentDB serverless
Topics
Migrating existing DocumentDB clusters to serverless
Upgrading a cluster’s engine version
If your provisioned cluster is running a lower engine version that does not support DocumentDB serverless, you need to first upgrade the cluster to a supported engine version. For more information, see Amazon DocumentDB in-place major version upgrade.
Migrating a provisioned cluster to DocumentDB serverless
To switch a provisioned cluster to use DocumentDB serverless, follow these steps:
Check if the provisioned cluster’s engine version needs to be upgraded to be used with DocumentDB serverless. See Requirements and limitations for DocumentDB serverless.
Note
If the provisioned cluster is running an engine version that isn't available for DocumentDB serverless, upgrade the engine version of the cluster. See Amazon DocumentDB in-place major version upgrade.
Configure the scaling configuration for the cluster. For details on choosing the scaling configuration, see Choosing the scaling capacity range for a DocumentDB serverless cluster. To modify the scaling configuration for a cluster, see Viewing and modifying a cluster’s scaling capacity range configuration.
Configure any other cluster properties to account for the DocumentDB serverless requirements and limitations from Requirements and limitations for DocumentDB serverless.
Add one or more DocumentDB serverless instances to the cluster. Follow the procedure in Adding an Amazon DocumentDB serverless instance.
Note
In some cases, you might already have one or more provisioned reader instances in the cluster. If so, you can choose to convert one of the readers to a DocumentDB serverless instance instead of creating a new instance. To do so, follow the procedure in Changing an instance's class.
(Optional) Perform a failover operation to make a DocumentDB serverless instance the cluster writer. See Amazon DocumentDB Failover.
(Optional) Convert any remaining provisioned Amazon DocumentDB instances to DocumentDB serverless instances (see Changing an instance's class) or remove them from the cluster (see Deleting an Amazon DocumentDB instance).
Migrating from MongoDB to DocumentDB serverless
You can migrate your MongoDB databases to DocumentDB serverless, just as with provisioned Amazon DocumentDB. For more information, see Migrating to Amazon DocumentDB.