3. In Anypoint Studio, go to MongoDB Config and set the MongoDB hostname in the connection string to “localhost”, then click “Test Connection”. If you deploy the application to CloudHub, there are some VPC connectivity methods that could help achieve network connectivity to DocumentDB: ...
On the Amazon DocumentDB console, under Clusters, locate your cluster. Choose the cluster you created by clicking the Cluster identifier. In the Connectivity and security tab, locate Connect to this cluster with the mongo shell in the Connect box: Copy the connection string provided and paste it...