Important
As of February 2025, you can create Flex clusters, and can no longer
create M2 and M5 clusters or Serverless instances in the
Atlas UI, Atlas CLI, Atlas Administration API, Atlas Kubernetes Operator, HashiCorp Terraform,
or Atlas CloudFormation Resources.
As of January 22, 2026, Atlas no longer supports M2 and M5
clusters and Serverless instances. All existing M2 and M5
clusters were migrated to Flex clusters.
Atlas migrated Serverless instances to Free clusters, Flex clusters, or Dedicated clusters according to your usage. To see which tiers Atlas migrated your instances to, consult the All Clusters page in the Atlas UI.
All of the tools support Flex clusters. Update your code and replace all references to deprecated instance types with references to Flex Clusters.
Note
If your workloads require Private Endpoints or Continuous Backup and Point-in-Time Restore, use Dedicated clusters.
Migrating API Configuration
The Cluster API endpoints listed in the table in this
section were compatible with M2/M5 clusters.
As of January 2025, these endpoints managed Flex clusters. These API endpoints
reached End of Life (EOL) on January 22, 2026.
As of January 2025, API endpoints for Serverless Instances managed Flex clusters. As of March 2025, Serverless instances are no longer supported. All existing Serverless instances were migrated to Free clusters, Flex clusters, or Dedicated clusters, according to usage. If your Serverless instance was migrated to a Free cluster or Dedicated cluster, use the Cluster API endpoint instead.
Support for creating M2 and M5 clusters using the creategroupcluster and
Serverless instances using the creategroupserverlessinstance endpoints
ended on January 22, 2026. These endpoints now only support Flex clusters.
The following changes also apply to the listed API endpoints:
Endpoint | Impact |
|---|---|
Deprecated. Returns an error because Serverless instances are no longer supported (as of May 2025). | |
When used on Flex clusters, | |
When used on Flex clusters, | |
When used on Flex clusters, | |
When used on Flex clusters, | |
When used on Flex clusters, |
Terraform Atlas Provider Migration
The HashiCorp Terraform Provider
supports Flex clusters. General Terraform support for M2/M5
clusters and Serverless instances ended on January 22, 2026.
Update your Terraform configurations to operate on Flex clusters.
Go SDK Migration
The Atlas Go SDK supports Flex clusters. General SDK
support for M2/M5 clusters and Serverless instances
ended on January 22, 2026.
Update your SDK scripts to operate on Flex clusters.
Atlas CLI Migration
The Atlas CLI supports Flex clusters. To learn more, see command reference and select the latest Atlas CLI version from the dropdown.
As of January 2025, continuous cloud backup is no longer supported on Serverless instances. If you used continuous cloud backup on any of your Serverless instances, remove Serverless Instance continuous cloud backup from your Atlas CLI workflows.
General Atlas CLI support for M2/M5 clusters and
Serverless instances ended on January 22, 2026.
Remove all M2/M5 and Serverless Instance commands
from your Atlas CLI workflows.
Atlas Kubernetes Operator Migration
The Atlas Kubernetes Operator supports Flex clusters.
To manage Flex clusters, you must use Atlas Kubernetes Operator 2.12.0 or later. This version is free of serverless dependencies.
You can create and manage Flex clusters using the
AtlasDeploymentCustom Resources. To learn more, see the AtlasDeployment custom resource in the Atlas Kubernetes Operator documentation.Use
spec.flexSpecin theAtlasDeploymentCustom Resource to configure Flex clusters.M2/M5clusters and Serverless instances are no longer supported. All existing instances have been migrated to Flex clusters or other cluster types.
Atlas CloudFormation Migration
Atlas CloudFormation and Cloud Development Kit (CDK) support Flex clusters.
General support for M2/M5 clusters ended on January 22, 2026.
Support for Serverless Private Endpoints
and the Properties.ContinuousBackupEnabled parameter of the
Serverless Instance
resource ended when Atlas CloudFormation introduced Flex cluster
support. These resources are no longer available in CloudFormation or CDK.
Remove all M2/M5 and Serverless instance features from your Atlas
CloudFormation and CDK resources.
Important
Use the MongoDB::Atlas::Cluster resource in CloudFormation or the CfnCluster resource in CDK
instead of the MongoDB::Atlas::FlexCluster resource in CloudFormation or the CfnFlexCluster resource in CDK
to create and manage Flex clusters. MongoDB::Atlas::Cluster and CfnCluster support
Flex clusters, and future upgrades will be available only through these resources.
CloudFormation and CDK do not yet support migration between Flex clusters and other cluster types,
but support will be added in the future.
For more information, see: