Create and run a MongoDB migration task
You are now ready to launch an AWS DMS migration task, to migrate the zips
data from MongoDB to Amazon DocumentDB.
-
Open the AWS DMS console at https://console.aws.amazon.com/dms/v2/
. -
In the navigation pane, choose Database migration tasks.
-
Choose Create task and enter the following information:
-
For Task configuration, choose the following settings:
-
Task identifier — enter a name that’s easy to remember, for example
my-dms-task
. -
Replication instance — choose the replication instance that you created in Create a replication instance.
-
Source database endpoint — choose the source endpoint that you created in Create source and target endpoints.
-
Target database endpoint — choose the target endpoint that you created in Create source and target endpoints.
-
Migration type — choose Migrate existing data.
-
-
For Task settings, choose the following settings:
-
Target table preparation mode — Do nothing
-
Include LOB columns in replication — Limited LOB mode
-
Maximum LOB size (KB) — 32
-
Enable validation
-
Enable CloudWatch logs
Note
CloudWatch logs usage will be charged at standard rates. See here
for more details.
-
-
For Advanced task settings, keep all of the options at their default values.
-
For Premigration assessment, keep the option at its default value.
-
For Start migration task in Migration task startup configuration, choose Automatically on create.
-
For Tags, keep all of the options at their default values.
-
When the settings are as you want them, choose Create task.
AWS DMS now begins migrating data from MongoDB to Amazon DocumentDB. The task status changes from Starting to Running. You can monitor the progress by choosing Tasks in the AWS DMS console. After several minutes, the status changes to Load complete.
Note
After the migration is complete, you can use the mongo shell to connect to your Amazon DocumentDB cluster and view the zips
data. For more information, see Access your Amazon DocumentDB cluster using the mongo shell in the Amazon DocumentDB Developer Guide.