Docs Menu
Docs Home
/
MongoDB Atlas
/ /

Integrate with Render

On this page

  • Considerations
  • Create and Configure an Atlas Cluster
  • Connect to Your Render-Hosted Application

You can connect Render-hosted applications to an Atlas cluster.

Use this page to complete the following tasks:

  • Create and configure an Atlas cluster.

  • Connect to your Render-hosted application.

To learn more, see the Render documentation.

  • To connect a Render-hosted application to an Atlas cluster, you must select AWS as the cloud provider for your Atlas cluster.

To create and configure a cluster in the Atlas UI:

1

Create an Atlas account or sign in to an existing account.

2
  1. If it's not already displayed, select the organization that contains your desired project from the Organizations menu in the navigation bar.

  2. If it's not already displayed, select your desired project from the Projects menu in the navigation bar.

  3. If it's not already displayed, click Clusters in the sidebar.

    The Clusters page displays.

3

Do one of the following steps:

  • Click Build a Cluster.

  • Click Create.

4

To learn more, see Select Cluster Tier.

5
6
7

Select the AWS region closest to the region where your Render-hosted application is deployed.

Render Region
AWS Region
Atlas region
Oregon, USA
us-west-2
US_WEST_2
Ohio, USA
Dedicated tier: us-east-2
Shared tier: us-east-1
Dedicated tier: US_EAST_2
Shared tier: US_EAST_2
Virginia, USA
us-east-1
US_EAST_1
Frankfurt, Germany
eu-central-1
EU_CENTRAL_1
Singapore
ap-southeast-1
AP_SOUTHEAST_1
8
9

In the How would you like to authenticate your connection? section of the Quickstart page, you can configure one of the following options for your cluster.

You can create environment variables for the following values in your Render service that connects to Atlas.

  1. Click Username and Password.

  2. Set the new user's Username and Password.

  3. Click Create User.

  1. Click Certificate. MongoDB uses X.509 certificates for passwordless authentication.

  2. Specify the Common Name (CN) for the new user.

  3. Optional. Toggle the Download certificate when user is added to On to download the certificate after creating the user.

    If you choose to download the certificate, you must also specify certificate expiration. To specify the duration, choose the duration for the certificate from the dropdown. You can set the certificate expiration to 3, 6, 12, or 24 months.

  4. Click Add User.

    The new user is granted Project Data Access Read/Write role by default.

10

You can enable access for any network that needs to read and write data to your cluster. To enable access, you can configure access from the Render cloud environment to your cluster.

  1. Choose Cloud Environment to configure network access between Atlas and your Render environment.

  2. Add your Render service's static outbound IP addresses.

11
12

You can view a connection string in the Atlas UI and use it to connect to your Render-hosted application.

1
  1. If it's not already displayed, select the organization that contains your desired project from the Organizations menu in the navigation bar.

  2. If it's not already displayed, select your desired project from the Projects menu in the navigation bar.

  3. If it's not already displayed, click Clusters in the sidebar.

    The Clusters page displays.

2
  1. Click the Connect button for your cluster.

  2. Select the Standard Connection type.

  3. Click Choose a connection method.

  4. Click Drivers.

    To learn more, see Drivers.

  5. Select the driver, install the driver, and copy the connection string.

To learn more, see Connection Strings.

3
  1. Return to your Render dashboard.

  2. Create environment variables to authenticate the connection to your Atlas cluster.

    To learn more, see Environmental Variables and Secrets in the Render documentation.

  3. Add the connection string to your application code.

Back

Explore Ecosystem