Connect to DocumentDB cluster from Cloud9

Migration Module (2.2.2) - Migrate from MongoDB to Amazon DocumentDB using Database Migration Service (DMS)

  1. Similar to the previous section, you will use the same mongo shell to connect with your Amazon DocumentDB cluster. Log into your Amazon DocumentDB cluster:
    mongo --ssl --host $docdbEndpoint:27017 --sslCAFile rds-combined-ca-bundle.pem --username $docdbUser --password $docdbPass
    

    connectdoc

(4) View any databases:

show databases

You will not see the ‘labdb’ database yet. You will migrate it next.

(5) View the collections:

use labdb
show collections

showcollections2

Now that you have confirmed your Amazon DocumentDB cluster has an empty labdb database, you can proceed to the next section and use the AWS Database Migration Service (DMS) to migrate your data from MongoDB.