You can manage your DocumentDB migrations by using the Mongock drivers for MongoDB
As AWS DocumentDB relies on the MongoDB driver/api, you can use Mongock to manage your migration in the same way you would do with MongoDB, using one of the drivers Mongock provides for MongoDB. You can see how to use it in our MongoDB driver section
As mentioned, AWS uses the MongoDB driver to operate with the database. However, AWS DocumentDB is mainly intended to be used inside the trusted network, which means that in order to connect from outside of the VPN in which the database resides,some extra work related to security is required. The next resources can be helpful to address some of the common issues.