Member-only story
How to Deploy MongoDB Atlas on Azure using Terraform
MongoDB Atlas is a global cloud database service for modern applications that allows us to deploy fully managed MongoDB across AWS, Azure, or GCP.
In this story, we will learn how to deploy an Atlas MongoDB infrastructure on Azure.
1. Generating MongoDB Atlas Provider API Keys
In order to configure the authentication with the MongoDB Atlas provider, an API key must be generated.
We log in to the MongoDB Atlas Portal, select our organization (or create a new organization if we don’t have one), select the Access Manager menu option, click the Add New button, and select API Key.
We enter a description for the API Key and select the Organization Project Creator permission.
And copy the Public and Private API Key to a safe place: