How to Configure MongoDB Atlas for Development Environment

Tadashi Shigeoka ·  Thu, August 1, 2019

This article introduces how to configure MongoDB Atlas for use as a development environment.

MongoDB | モンゴディービー

Prerequisites

MongoDB Atlas is a MongoDB DBaaS provided by MongoDB Inc.

My usual MongoDB development environment hosts MongoDB with Docker, but the purpose of this article is to understand how to use MongoDB Atlas.

We assume no credit card is registered.

MongoDB Atlas Configuration

Cloud Provider & Region

There was no Tokyo Region in the FREE TIER AVAILABLE options that can be used for free, so I selected us-east-1 considering connections from Heroku as well (since Heroku’s region is us-east-1).

Otherwise, for access from Japan, Singapore Region would be the closest.

Cloud Provider & Region | MongoDB Atlas

Network Access - ADD IP ADDRESS

You cannot access without adding the source IP Address to the whitelist. For those who work in cafes frequently or don’t work from specific locations, the source IP Address changes frequently, so updating the whitelist each time would be cumbersome.

This article describes how to configure without restricting source IP Address.

Configuration Steps:

  1. Open Network Access page
  2. Click + ADD IP ADDRESS button
  3. From Add Whitelist Entry modal window, click ALLOW ACCESS FROM ANYWHERE button and click Confirm button
Add Whitelist Entry | MongoDB Atlas

⚠️ As a precaution, please note that in production environments, do not use ALLOW ACCESS FROM ANYWHERE and be sure to set only the IP Address of the source server.

That’s all from the Gemba on understanding the configuration for using MongoDB Atlas as a development environment.