In this lab, you will perform an offline migration of a MongoDB database to an Amazon DocumentDB cluster. After completing this lab, you will have hands-on experience with performing an offline migration using the `mongodump` and `mongorestore` commands.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Dump the Collection Data
Dump the collection named
library
from the source MongoDB instance atmongodb://10.0.0.101:27017
.- Create the Index
Create an index on the
author
field of thelibrary
database on the DocumentDB cluster.- Restore the Collection Data
Restore the collection data dumped from the source to the DocumentDB cluster.
- Test the New Endpoint
Test the connection to the DocumentDB cluster, and provide the new endpoint to the application administrators.