Creating an Amazon DocumentDB source endpoint of AWS DMS

To Nha Notes | Oct. 7, 2022, 10:37 a.m.

You can create an Amazon DocumentDB source endpoint using either the console or AWS CLI. Use the procedure following with the console.

To configure an Amazon DocumentDB source endpoint using the AWS DMS console

  1. Sign in to the AWS Management Console and choose AWS DMS.

  2. Choose Endpoints from the navigation pane, then choose Create Endpoint.

  3. For Endpoint identifier, provide a name that helps you easily identify it, such as docdb-source.

  4. For Source engine, choose Amazon DocumentDB (with MongoDB compatibility).

  5. For Server name, enter the name of the server where your Amazon DocumentDB database endpoint resides. For example, you might enter the public DNS name of your Amazon EC2 instance, such as democluster.cluster-cjf6q8nxfefi.us-east-2.docdb.amazonaws.com.

  6. For Port, enter 27017.

  7. For SSL mode, choose verify-full. If you have disabled SSL on your Amazon DocumentDB cluster, you can skip this step.

  8. For CA certificate, choose the Amazon DocumentDB certificate, rds-combined-ca-bundle.pem. For instructions on adding this certificate, see Connecting to Amazon DocumentDB using TLS.

  9. For Database name, enter the name of the database to be migrated.

Use the following procedure with the CLI.

To configure an Amazon DocumentDB source endpoint using the AWS CLI

  • Run the following AWS DMS create-endpoint command to configure an Amazon DocumentDB source endpoint, replacing placeholders with your own values.

    aws dms create-endpoint \ --endpoint-identifier a_memorable_name \ --endpoint-type source \ --engine-name docdb \ --username value \ --password value \ --server-name servername_where_database_endpoint_resides \ --port 27017 \ --database-name name_of_endpoint_database

 

References

https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.DocumentDB.html