How to Configure MongoDB Atlas for Development Environment
This article introduces how to configure MongoDB Atlas for use as a development environment.
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.
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.
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:
⚠️ 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.