Blog
{Blog}  MongoDB Atlas integrations for AWS CloudFormation and CDK are now generally available! Learn more

MongoDB Atlas and AWS CloudFormation

MongoDB Atlas and AWS CloudFormation enable teams to efficiently model and manage their resources so that their applications can run smoothly.
Register for Atlas
Try Free in the AWS Marketplace
An illustration of a database over a cloud.

What is AWS CloudFormation?

AWS CloudFormation is a tool used to provision infrastructure as code, and manage resources on the AWS cloud. It works by configuring your AWS resources in JSON or YAML formats.

Build resilient applications

Learn about the benefits of deploying and managing MongoDB Atlas with AWS CloudFormation.
An illustration of arms typing on laptop with a coffee cup and application pane.

Create and manage deployments with ease

Easily create an Atlas database using AWS CloudFormation. MongoDB Atlas supports native CloudFormation templates with a new set of resource types, allowing teams to manage complete MongoDB Atlas deployments.
An illustration of a rocket ship flying upwards with bar chart scaling upward left to right.

Increase deployment speed

With MongoDB Atlas, teams are able to increase deployment velocity. Atlas and CloudFormation enable teams to quickly build and deploy infrastructure as code and increase agility.
An illustration of master key lock in front of documents.

Enable secure data service consumption

Our integration helps teams manage their MongoDB Atlas deployments entirely through the AWS Management Console or AWS Command Line Interface (AWS CLI) to ensure secure data service consumption.

Deploying AWS CloudFormation with MongoDB

MongoDB Atlas Third Party Extensions need to be activated in each AWS Region and AWS Account in order to deploy resources.
An illustration of hand pulling a resource.

YAML/JSON Templates

Use MongoDB Atlas resources from the CloudFormation Public Registry and execute via the AWS CLI / AWS Management Console.

An illustration of a cloud database with graphs and charts.
MongoDB Atlas support for AWS CDK
CDK is a developer-friendly workflow for deploying cloud infrastructure. It enables users to create, manage, and update Atlas resources and deploy via CloudFormation (AWS CDK) using a language of their choice. It uses concepts and libraries from the MongoDB Atlas Admin API.
Learn more
Related resources
An illustration of a video in window with connected avatar.

AWS CloudFormation Overview

Learn about the multiple ways you can create Atlas clusters in your AWS environment with our CloudFormation resources

general_content_play

AWS Cloud Development Kit (CDK) overview

Learn how to set up your MongoDB Clusters with CloudFormation using the AWS Cloud Development Kit (CDK)

Build with MongoDB and AWS CloudFormation

Our free clusters come with 512MB of storage, so you can play around and get oriented with our platform. Get started with MongoDB and AWS CloudFormation in seconds.
Register for Atlas
Quick start
An illustration building a platform through code on multiple screens.

AWS CloudFormation FAQ's

What is MongoDB Atlas?
MongoDB Atlas is the global cloud database service for modern applications. Deploy fully managed MongoDB across AWS, Azure, or Google Cloud with best-in-class automation and proven practices that guarantee availability, scalability, and compliance with security standards. Use MongoDB’s robust ecosystem of drivers, integrations, and tools to build faster and spend less time on operations and database administration.
What is the Atlas CLI?
The Atlas CLI is a unified command line tool for MongoDB Atlas. You can use the Atlas CLI to create and manage MongoDB Atlas resources from your command line and easily automate them using scripts.
What is AWS?
Amazon Web Services (AWS) is a cloud platform, offering over 200 fully featured services from data centers globally. You can run MongoDB Atlas on AWS by setting up a cluster or live-migrate an existing MongoDB deployment using the Atlas Live Migration Service.
What is AWS CloudFormation?
AWS CloudFormation is an infrastructure-as-code (IaC) service that helps you model and set up your MongoDB Atlas resources so that you can spend less time managing those resources and more time focusing on your applications. CloudFormation lets users create and manage AWS, MongoDB Atlas, and other Third Party resources directly from templates which provide dependable out of the box blueprint deployments for any kind of cloud app.
What can developers do with AWS CloudFormation?
Developers can deploy and update, compute, database, and many other resources in a simple, declarative style that abstracts away the complexity of specific resource APIs. AWS CloudFormation is designed to allow resource lifecycles to be managed repeatedly, predictable, and safely, while allowing for automatic rollbacks, automated state management, and management of resources across accounts and regions. Recent enhancements and options allow for multiple ways to create resources, including using AWS CDK for coding in higher-level languages, importing existing resources, detecting configuration drift, and a new Registry that makes it easier to create custom types that inherit many core CloudFormation benefits.
What are some different ways I can create an Atlas Database Cluster with CloudFormation?

First, users can directly leverage MongoDB Atlas resources from the CloudFormation Public Registry.

Next, teams can create Atlas environments through their AWS Cloud Development Kit (CDK) within AWS.

Finally, by leveraging our AWS Partner Solutions Deployment (formally AWS Quick Starts). Partner Solutions are automated reference deployments built by AWS solutions architects and AWS Partners.

Learn more
What MongoDB Atlas CloudFormation Resources are available today?
What is the AWS CDK?
The AWS Cloud Development Kit (AWS CDK) is an open-source software development framework for defining cloud infrastructure as code with modern programming languages and deploying it through AWS CloudFormation.
How does AWS CDK work?
Use the AWS CDK framework to author AWS CDK projects, which are executed to generate CloudFormation templates. AWS CDK projects can be executed using the AWS CDK command line or in a continuous delivery system.
What programming languages does AWS CDK support?
AWS CDK is generally available in JavaScript, TypeScript, Python, Java, C#, and Go.
Where can I go to learn more about AWS CDK?
You can learn more at AWS Cloud Development kit FAQs.
Is CloudFormation cloud agnostic?
No, CloudFormation only deploys MongoDB Atlas clusters to AWS Cloud. For Azure or Google Cloud support, we suggest either our Terraform Atlas Provider or CDK.