You can find the endpoint for an instance using the Amazon DocumentDB console or the AWS CLI.
To find an instance's endpoint using the console
Sign in to the AWS Management Console, and open the Amazon DocumentDB console at https://console.aws.amazon.com/docdb
. -
In the navigation pane, choose Clusters.
Tip
If you don't see the navigation pane on the left side of your screen, choose the menu icon (
) in the upper-left corner of the page.
-
In the Clusters navigation box, you’ll see the column Cluster Identifier. Your instances are listed under clusters, similar to the screenshot below.
-
Check the box to the left of the instance you are interested in.
-
Scroll down to the Details section then locate the instance endpoint.
-
To connect to this instance, scroll up to the Connect section. Locate the connection string for the
mongo
shell and a connection string that can be used in your application code to connect to your instance.