- If connecting from outside the DocumentDB cluster's VPC, ensure you have setup an SSH tunnel.
- Launch the SQuirrel SQL Client application.
- Ensure the Drivers tab is selected.
- Navigate to menu path Drivers > New Driver ...
- For the Name: field, enter DocumentDB.
- For the Example URL: field, enter
jdbc:documentdb://<host>[:port]/<database>[?option=value[&option=value[...]]]
- Select the Extra Class Path tab.
- Click the Add button and navigate to the downloaded Amazon DocumentDB JDBC driver JAR file.
- Click OK to add the JAR file to the Extra Class Path.
- Click the List Drivers button.
- For the Class Name: field, ensure the
software.amazon.documentdb.jdbc.DocumentDbDriver
is selected. - Click the OK button to create and save the driver settings.
- If connecting from outside the DocumentDB cluster's VPC, ensure you have setup an SSH tunnel.
- Launch the SQuirrel SQL Client application.
- Ensure the Aliases table is selected.
- Navigate the menu path Aliases > New Alias....
- For the Name: field, enter a name for this alias.
- For the Driver: field, ensure DocumentDB is selected.
- For the URLS: field, enter your JDBC connection string.
For example,
jdbc:documentdb://localhost:27017/database?tlsAllowInvalidHostnames=true
- For the User Name: field, enter your Amazon DocumentDB user ID.
- For the Password field, enter the corresponding password for the user ID.
- Click OK to save the alias.
- Double-click your alias to start the connection dialog.
- Click the Connect button to connect.