MongoDB Atlas: Connect Restore Projects
Who can use this feature
Anyone with these permissions: Manage restore connections (Cloud workloads, SaaS applications)
This article explains how to connect a MongoDB Atlas restore project to Eon. A MongoDB Atlas restore project links a specific MongoDB Atlas project to an existing AWS restore account.
Eon uses the AWS restore account to:
-
Store Atlas project API keys in Secrets Manager when you connect.
-
Provision the temporary restore server, which operates as a command node to read backup data from the vault and load it into MongoDB.
-
Provide the restore node IAM role that you register in MongoDB Atlas as the restore database user.
In the MongoDB Atlas project, you deploy Eon’s access (API key, database user, and IP access list). During restore, Eon creates a new cluster or reuses an existing one with the name you specify.
Connect a restore project
You’ll start this procedure on the MongoDB Atlas restore projects restore accounts page by clicking Connect Restore Account and selecting MongoDB Atlas.
Before you start
Before you connect your restore project, make sure:
-
You have an AWS restore account connected to Eon and in the Connected state, with restore permissions version 1.10.4 or later. The AWS account is required because MongoDB Atlas is a managed service and needs an AWS control plane for restore operations. See AWS: Connect Restore Accounts for instructions.
-
You have access to the MongoDB Atlas project with permissions to create database users and API keys.
-
You understand the permissions Eon needs to restore your data. See MongoDB Atlas: Permissions Deployment Files for details.
Select AWS restore account
Choose the AWS restore account to serve as the control plane for MongoDB Atlas restore operations.
The selected account must be in the Connected state and have restore permissions version 1.10.4 or later. Only eligible accounts are shown in the list.
Provide Project ID and choose deployment method
-
In the Project ID field, paste your MongoDB Atlas Project ID.
-
Choose whether you want to deploy with Terraform or Bash:
-
Terraform: Use the provided Terraform module to install the required configurations.
-
Bash: Run the provided bash script to install the required configurations.
-
The wizard displays the command or module invocation you’ll need.
Deploy permissions
Bash
Terraform
-
Copy the provided command and run it in a terminal. The command downloads and runs a script that creates the necessary database users and API keys. You can review the script before running it.
-
The script uses MongoDB Atlas OAuth device authorization for authentication. Follow the prompts to authenticate.
-
After the script completes, it displays the Eon public key and Eon private key. Copy these values.
Enter Eon keys
Return to the Eon console and paste the Eon public key and Eon private key from the setup output, and then click Connect.
Eon checks that the necessary configurations are in place in the MongoDB Atlas project and, if successful, adds the restore project to the MongoDB Atlas projects list.
Eon now has the access it needs in the MongoDB Atlas project, and you can restore a cluster or selected databases to clusters in the project.
To keep traffic between Eon and this project on the AWS private network, configure a private endpoint.
Configure a private endpoint
You can configure an AWS private endpoint so traffic between Eon and this Atlas project stays on the AWS private network. For a restore project, the AWS VPC interface endpoint lives in your own AWS restore account (the account where Eon’s temporary restore server runs). You create the VPC endpoint yourself and then provide its ID to Eon. For background, see MongoDB Atlas: About Private Endpoints.
Before you start, make sure:
-
Your Atlas cluster is a dedicated cluster (M10 or higher). Private endpoints aren’t available on Free or Flex clusters.
-
You have Project Owner or Organization Owner access in the MongoDB Atlas project.
-
Your cluster is in an AWS region where you plan to configure the private endpoint. Private endpoints are region-specific.
Create the endpoint service in MongoDB Atlas
-
In the MongoDB Atlas console, go to the Database & Network Access page, then click Private Endpoint in the sidebar.
-
Select the Dedicated Cluster tab and click Create Endpoint Service.
-
Choose AWS as the cloud provider, select the Atlas Region that matches your cluster, and click Create Endpoint Service.
-
Copy the Service Name displayed for the endpoint service. You’ll use it in the next step.
Create the VPC endpoint in your AWS restore account
In your AWS restore account, create an interface VPC endpoint that targets the Atlas endpoint service name you copied.
When the endpoint is created, copy its VPC Endpoint ID (begins with vpce-).
Register the endpoint with Eon and Atlas
-
In the Eon console, navigate to the restore project and open the private endpoint configuration. Enter the VPC Endpoint ID you copied from AWS.
-
In the MongoDB Atlas console, return to the Database & Network Access page, open your endpoint service, click Add Endpoint, and select Connect Existing Endpoint.
-
Enter the VPC Endpoint ID, click Submit Endpoint, and wait for Atlas to show Available.
-
In Eon, verify the connection.
Once verification succeeds, all Eon restore traffic to the Atlas project flows over AWS PrivateLink on the private network.