MongoDB
Create a Depot resource for MongoDB databases and collections.
Set up the MongoDB connection in two ways: username and password, or certificate authentication. Follow the sections below to create the Depot using either method.
Pre-requisites specific to DataOS
A user with the Tenant Admin, Data Admin, or Data Developer Tenant role can create a Depot.
See Depot: Access control for who can create a Depot and how access to it is managed.
Run this command to see your assigned roles.
dataos-ctl user get
#Expected Output:
time="2026-03-30T17:49:18+05:30" level=info msg="😃 user get..."
time="2026-03-30T17:49:19+05:30" level=info msg="😃 user get...complete"
NAME │ ID │ TYPE │ EMAIL │ TAGS
──────────────┼───────────────────┼────────┼──────────────────────┼────────────────────────────────────────
I Am Groot │ iamgroottmdcio │ person │ iam.groot@tmdc.io │ roles:id:ct-onboarding-data-developer,
│ │ │ │ roles:id:user,
│ │ │ │ users:id:iamgroottmdcio
Pre-requisites specific to the source system
Username and password: Obtain from your database administrator.
MongoDB node details: Obtain from your database administrator.
Steps
Create a MongoDB Depot that references a MongoDB Secret.
Step 1: Create a Secret for securing MongoDB credentials
Create a Secret Resource using the MongoDB guide.
Step 2: Create a MongoDB Depot manifest file
Create a manifest file for the MongoDB Depot.
Step 3: Apply the Depot manifest file
Apply the manifest with the DataOS CLI:
Verify the Depot creation
Verify the Depot in two ways:
List Depots where you are the owner:
List all Depots in the current Tenant:
Delete a Depot
To delete a Depot, use the DataOS CLI:
Specify the Resource type and Depot name in the delete command.
Example:
MongoDB Depot configured with multiple nodes
MongoDB supports a Depot configured with multiple nodes. You can reuse the Depot created for the MongoDB CDC source as a destination, limited to the replace incremental strategy.
Last updated
Was this helpful?