MongoDB Atlas¶
Follow these steps to integrate MongoDB with InfraKitchen. This integration allows InfraKitchen to connect to your MongoDB databases — hosted either on MongoDB Atlas or self-managed clusters — to monitor, automate, and manage database-related operations.
1️⃣ Log in to MongoDB Atlas¶
- Go to https://cloud.mongodb.com and sign in.
- Navigate to Identity & Access -> Applications.
- Navigate to API Keys.
- Click Add New API Key.
2️⃣ Create an API Key¶
- Provide a description for the API key (e.g.,
InfraKitchen Integration Key). - Assign the following roles to the API key:
- Organization Owner or Project Owner – full administrative control (use with caution).
-
Add Access List Entries to restrict the API key to specific IP addresses (optional but recommended).
-
Add the IP address or CIDR block for InfraKitchen (or
0.0.0.0/0for testing only). -
Copy both:
-
Public Key
-
Private Key
-
Click Done.
3️⃣ Fill Out the InfraKitchen Integration Form¶
InfraKitchen path: /integrations/mongodb_atlas/setup
| Field | Description |
|---|---|
| Integration Name | Unique name for this integration (e.g., mongodb-prod) |
| Description | Short description of your MongoDB environment |
| Labels | Add labels such as production, mongodb, atlas |
| MongoDB Atlas Org ID | Paste your MongoDB Organization ID |
| MongoDB Atlas Public Key | Public KEY copied in previous step |
| MongoDB Atlas Private Key | Private KEY copied in previous step |
4️⃣ Test the Connection¶
- Click Test Connection to validate your configuration.
- InfraKitchen will attempt to connect using your provided credentials and URI.
-
If the test fails:
-
Verify your Public/Private keys are correct.
- Ensure your IP or network is whitelisted in API Access List.