Skip to main content

Set up Amazon DocumentDB

Connect docs via MCP

Configure authentication for the Amazon DocumentDB connector by creating a crawl user with appropriate permissions. Amazon DocumentDB is MongoDB-compatible, so you create the user with MongoDB-style commands. This guide walks you through creating a user with either a built-in role or a custom role, depending on your access requirements.

Before you begin

Amazon DocumentDB requires Self-Deployed Runtime

Amazon DocumentDB is cataloged only through Self-Deployed Runtime deployed in the same VPC as your cluster—Atlan Cloud can't connect to your cluster directly. Plan to install the runtime as part of connecting this source. For details, see Why is Amazon DocumentDB supported only through self-deployed runtime? in the FAQ.

SDR requires additional enablement and licensing. Contact your Atlan representative for details.

The crawl user you create must be able to list databases and collections, run collStats, and run find() to sample documents. The find permission is required to enable field extraction. Without it, only basic metadata is cataloged and column information isn't available. For more details, see What happens when read permission on collections is missing.

Create crawl user

To enable Atlan to crawl Amazon DocumentDB, create a user that Atlan can authenticate as. Amazon DocumentDB supports two authentication methods:

  • Basic authentication (SCRAM-SHA-1): A username and password stored in DocumentDB. Use the steps below to create the user and assign a role.
  • IAM authentication (MONGODB-AWS): AWS Identity and Access Management credentials. With IAM authentication, you map an IAM user or role to a DocumentDB user and grant the same database roles described below. For details on enabling and mapping IAM users, see the Amazon DocumentDB IAM authentication documentation.

Use a built-in role to grant read-only access to all databases in your DocumentDB cluster. For more information, see the Amazon DocumentDB built-in roles documentation.

  1. Connect to your DocumentDB cluster using the mongo shell or a MongoDB-compatible client.
  2. Select the authentication database (usually admin):
    use admin
  3. Create a user with read-only access:
    db.createUser({
    user: "atlan_user",
    pwd: "your_secure_password",
    roles: [{ role: "readAnyDatabase", db: "admin" }]
    })
    • Replace atlan_user with your desired username and your_secure_password with a secure password.
    • The readAnyDatabase built-in role includes the privileges the connector needs across all databases, including listing databases and collections, running collStats, and running find() to sample documents.

Next steps

Now that you've set up the Amazon DocumentDB connector and created a crawl user, you're ready to: