Connecting to endpoints - Amazon DocumentDB
This documentation is a draft for private preview for regions in the AWS European Sovereign Cloud. Documentation content will continue to evolve. Published: January 12, 2026.

Connecting to endpoints

When you have your endpoint, either cluster or instance, you can connect to it using the mongo shell or a connection string.

Connecting using the mongo shell

Use the following structure to construct the string that you need to connect to your cluster or instance using the mongo shell:

mongo shell examples

Connect to a cluster:

Connect to an instance:

Connecting using a connection string

Use the following structure to construct the connection string that you need to connect to your cluster or instance.

Connection string examples

Connect to a cluster:

Connect to an instance: