MongoDB and HashiCorp Terraform

Integrate MongoDB Atlas into your continuous delivery workflow using the HashiCorp Terraform MongoDB Atlas Provider to automate your data infrastructure deployments on any cloud provider.

new_workloads

Simplify infrastructure management

Fully automate deployment of MongoDB Atlas resources as code, including provisioning access controls, networking, encryption at rest, backups, and more.

mdb_migrator

Standardize and control workflows

Deploy MongoDB Atlas in the same workflow as other resources and ensure consistency across teams by creating modules for standard configurations in Terraform.

mdb_migration_success

Cloud-first and platform-agnostic

Whatever type of environment you run on, HashiCorp Terraform and MongoDB Atlas make it easy to provision infrastructure with support for all major cloud providers, including AWS, Microsoft Azure, and Google Cloud.

How to use MongoDB Atlas and HashiCorp Terraform

The HashiCorp Terraform MongoDB Atlas Provider is the official plugin verified and tested by HashiCorp for managing MongoDB Atlas using Terraform.
Illustration of a hands typing on laptop.
number-1-inverse.svg

Sign up for MongoDB Atlas

If you don’t already use MongoDB Atlas, sign up for an account today. Distributed and secure by default, MongoDB Atlas is a global cloud database service available on all major cloud providers, including AWS, Microsoft Azure, and Google Cloud.

number-2-inverse.svg

Configure HashiCorp Terraform

To use the HashiCorp Terraform MongoDB Atlas Provider, you must first configure it with the proper credentials. Provide your credentials for authentication via static credentials or environment variables, then simply define your desired Atlas resources.

Configure HashiCorp Terraform
Integration of Terraform and MongoDB Atlas
number-3-inverse.svg

Deploy!

Once you’ve created your MongoDB Atlas account and configured your Terraform environment, the Terraform Provider works on your behalf to create Atlas resources in the environment of your choice.

Customers Using HashiCorp Terraform and MongoDB Atlas

Learn about Liberty Mutual's journey to the cloud and how it uses the HashiCorp Terraform MongoDB Atlas Provider.

Integration of Terraform and MongoDB Atlas

MongoDB support for Terraform CDK (CDKTF)

Deploy and manage infrastructure as code with more flexibility by using the CDKTF to easily deploy Atlas infrastructure to the cloud.
new_workloads

Increase Productivity

Deploy infrastructure as code without context switching between languages and use the same tooling and syntax to provision resources.

mdb_migrator

Streamline Collaboration

Leverage Terraform infrastructure automation using familiar syntax and established deployment pipelines to configure the infrastructure.

mdb_migration_success

Reduce Complexities

Avoid code duplication by creating custom abstraction layers to simplify development and speed up the delivery of new features and services.

MongoDB Atlas and HashiCorp Terraform FAQ

What is MongoDB Atlas?

Minus Button

MongoDB Atlas is a fully managed cloud database service that simplifies deploying, managing, and scaling MongoDB.

Ready to get started?

Deploy MongoDB Atlas using the HashiCorp Terraform MongoDB Atlas Provider today.
Illustration of a hands typing on laptop.