![]() Double-check that the security group settings allow incoming connections on port 27017.Ensure that your EC2 instance has internet access and can reach the DocumentDB cluster.If you're still experiencing issues, make sure to check the following: Click Connect to attempt the connection.Adjust any other required settings (e.g., SSL).In the Hostname field, paste the connection string you copied earlier.Open MongoDB Compass on your local machine. ![]() The shell should attempt to connect to your Amazon DocumentDB cluster.Paste the connection string you copied earlier and press Enter.Open your MongoDB shell on your EC2 instance.In the security group settings, verify that there is an inbound rule allowing traffic on port 27017.In the Description tab, look for the Security groups section and click on the linked security group.Ensure that the security group associated with your EC2 instance allows incoming connections on the DocumentDB port (default is 27017).Select the Connect using MongoDB Compass option.In the Cluster details tab, click on the Connect button.Here's a step-by-step guide to help you connect: ![]() To connect to Amazon DocumentDB from your MongoDB shell or MongoDB Compass, you need to ensure that you have the correct connection string and that your network configurations allow for the connection. Connecting Amazon DocumentDB to MongoDB Shell and Compass
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |