Create a Serverless Instance
This tutorial takes you through the steps to create a new Atlas serverless instance.
To convert your existing shared cluster to a serverless instance, see Convert a Shared Cluster to a Serverless Instance.
Required Access
To create a serverless instance, you must have Project Owner
access to the project. Users with Organization Owner
access
must add themselves to the project as a Project Owner
.
Procedure
To create one serverless instance in the project you specify using the Atlas CLI, run the following command:
atlas serverless create <instanceName> [options]
To monitor the status of a serverless instance using the Atlas CLI, run the following command:
atlas serverless watch <instanceName> [options]
The watch
command checks the serverless instance's state periodically until the instance reaches an idle state. Once the instance reaches the expected state, the command prints Instance available
. You can interrupt the command's polling at any time with CTRL
+ C
.
To learn more about the syntax and parameters for the previous commands, see the Atlas CLI documentation for atlas serverless create and atlas serverless watch.
Tip
See: Related Links
The procedure for creating a new Atlas serverless instance using the Atlas UI differs depending on whether you already have one or more clusters in your project.
When you create an Atlas serverless instance using the Atlas UI, you can either:
Use a template with preset advanced configuration options.
Specify advanced configuration options.
Whether you use a template or specify advanced configuration options, you can modify all configuration options after you create the serverless instance.
In Atlas, go to the Clusters page for your project.
If it is not already displayed, select the organization that contains your desired project from the Organizations menu in the navigation bar.
If it is not already displayed, select your desired project from the Projects menu in the navigation bar.
If the Clusters page is not already displayed, click Database in the sidebar.
Select the Serverless type.
Select the serverless instance cluster type from
the preset templates. You can also deploy an M10
dedicated cluster or an M0
free cluster from this page.
M10
Dedicated ClustersM10
dedicated clusters are suitable for production applications with sophisticated workload requirements. Dedicated clusters can be deployed into a single geographical region or multiple geographical regions.- Serverless Instances
- Serverless instances require minimal configuration and are best for application development and testing or workloads with variable traffic. To learn more about serverless instances, see Choose a Cluster Type.
M0
Free ClustersM0
free clusters are for learning and exploring MongoDB in a cloud environment. You can begin your project with anM0
cluster and upgrade to a production-ready tier at a future time.
To specify advanced configuration options or select other cluster tiers, click advanced configuration options.
To create a cluster, see Create a New Cluster for next steps.
Select your preferred Provider.
The cloud provider that you select affects the configuration options, network latency for clients accessing your serverless instance, and the cost of running the serverless instance.
To learn more, see Cloud Providers and Regions.
Select your preferred Region.
Atlas displays available regions for the cloud provider you select. The region that you select determines the geographic location of the nodes in your serverless instance and the cost of running the serverless instance.
To learn more, see Cloud Providers and Regions.
Specify a name for the serverless instance in the Name box.
This label identifies the serverless instance in Atlas.
You can't change the serverless instance name after you deploy it. Serverless instance names can't exceed 64 characters in length.
Important
Atlas truncates the cluster name to 23 characters in its internal interactions. In practice, this means:
Cluster names shorter than 23 characters can't end with hyphen or dash (
-
).Cluster names 23 characters or longer can't use a hyphen or dash (
-
) as its 23rd character.The first 23 characters in a cluster name must be unique within a project.
Don't include sensitive information in your cluster name.
Specify a tag key and value to apply to the serverless instance.
To learn more, see Apply a cluster Tag to a New Cluster from a Template.
Important
Don't include sensitive information such as Personally Identifiable Information (PII) or Protected Health Information (PHI) in your resource tags. Other MongoDB services, such as Billing, can access resource tags. Resource tags are not intended for private and sensitive data. To learn more, see Sensitive Information.
Deploy your serverless instance.
Click Create.
Important
Each Atlas project supports up to 25 clusters. Please contact Atlas support for questions or assistance regarding the cluster limit. To contact support, select Support from the left-hand navigation bar of the Atlas UI.
Update your Payment Method details as needed.
Click the radio button for Credit Card or Paypal.
If you selected Credit Card, type values for the following fields:
FieldNecessityActionName on CardRequiredType the name that appears on your credit card.Card NumberRequiredType the 16-digit number that appears on your credit card. American Express uses a 15-digit number.Expiration DateRequiredType the expiration date for your credit card in the two-digit month and two-digit year format.CVC
RequiredType the three-digit number on the back of your credit card. American Express uses a 4-digit number found on the front of the credit card.If you selected PayPal:
Click Pay with PayPal.
Complete the actions on the PayPal website.
All projects within your organization share the same billing settings, including payment method.
Deploy your serverless instance.
Click Confirm and Deploy Instance.
Important
Each Atlas project supports up to 25 clusters. Please contact Atlas support for questions or assistance regarding the cluster limit. To contact support, select Support from the left-hand navigation bar of the Atlas UI.
In Atlas, go to the Clusters page for your project.
If it is not already displayed, select the organization that contains your desired project from the Organizations menu in the navigation bar.
If it is not already displayed, select your desired project from the Projects menu in the navigation bar.
If the Clusters page is not already displayed, click Database in the sidebar.
Select a cluster type.
Use the tabs at the top of the screen to select your cluster type. You can deploy the following clusters:
- Serverless Instances
- Serverless instances require minimal configuration and are best for applications that aren't critical and experience low or variable traffic. To learn more about serverless instances, see Choose a Cluster Type.
- Shared Clusters
- Shared clusters include the
M0
,M2
, andM5
tiers. These low-cost cluster types are suitable for teams who are learning MongoDB or developing small proof-of-concept applications. You can begin your project with a shared cluster and upgrade to a production-ready tier at a future time. - Dedicated Clusters
- Dedicated clusters include
M10
and higher tiers. TheM10
andM20
tiers are suitable for development environments and low-traffic applications, while higher tiers can handle large datasets and high-traffic applications. Dedicated clusters can be deployed into a single geographical region or multiple geographical regions.
Select Serverless, then proceed to the next step to customize the configuration prior to deployment.
To create a shared cluster or a dedicated cluster, see Create a New Cluster for next steps.
Select your preferred Cloud Provider & Region.
The choice of cloud provider and region affects the network latency for clients accessing your serverless instance, the geographic location of the nodes in your serverless instance, and the cost of running the serverless instance.
Serverless instances support fewer regions than clusters. To learn more, see the region information for AWS, Google Cloud and Azure.
Configure backup for your serverless instance.
Select one of the following backup options:
Option | Description |
---|---|
Serverless Continuous Backup | Atlas takes incremental snapshots of the data in your
serverless instance every six hours and lets you restore the
data from a selected point in time within the last 72 hours.
Atlas also takes daily snapshots and retains these daily
snapshots for 35 days. To learn more, see
Serverless Instance Costs. |
Basic Backup | Atlas takes incremental snapshots of the data in your
serverless instance every six hours and retains only the two
most recent snapshots. You can use this option for free. |
Specify the Serverless Instance Details.
From the Serverless Instance Details section, you can:
Specify the Serverless Instance Name.
This is the serverless instance name as it appears in Atlas. You can't change the serverless instance name once you deploy it.
click to enlargeServerless instance names can't exceed 64 characters in length.
Important
Atlas truncates the serverless instance name to 23 characters in its internal interactions. In practice, this means:
Serverless instance names shorter than 23 characters can't end with hyphen or dash (
-
).Serverless instance names 23 characters or longer can't use a hyphen or dash (
-
) as its 23rd character.The first 23 characters in a serverless instance name must be unique within a project.
Don't include sensitive information in your serverless instance name.
Apply tags to the serverless instance.
Important
Don't include sensitive information such as Personally Identifiable Information (PII) or Protected Health Information (PHI) in your resource tags. Other MongoDB services, such as Billing, can access resource tags. Resource tags are not intended for private and sensitive data. To learn more, see Sensitive Information.
Update your Billing Address details as needed.
Field | Necessity | Action |
---|---|---|
Billing Email Address | Optional | Type the email address to which Atlas should send billing alerts. By default, Atlas sends billing alerts to the Organization Owners and Billing Admins.
|
Company Name | Optional | Type the name of the company for your billing address. |
Country | Required | Select the country for your billing address. You can also
start typing the name of the country and then select it from
the filtered list of countries. |
Street Address | Required | Type the street address for your billing address. |
Apt/Suite/Floor | Optional | Type an the apartment, suite, or floor for your
billing address. |
City | Required | Type the name of the city for your billing address. |
State/Province/Region | Required | Type or select the political subdivision in which your billing address exists. The label and field change depending on what you selected as your Country:
|
ZIP or Postal Code | Required | Type the ZIP (U.S.) or Postal Code (other countries) for your
billing address. |
VAT Number | Conditional | Atlas displays the VAT ID field if you select a country other than the United States. To learn more about VAT, see VAT ID. If your company's billing address is in a country other than
the United States (USA), Atlas typically charges VAT if you do
not enter a valid ImportantIf your billing address is in Ireland or certain Canadian provinces,
Atlas always charges VAT, even with a valid To learn more about VAT by region, see International Usage and Taxation. |
Update your Payment Method details as needed.
Click the radio button for Credit Card or Paypal.
If you selected Credit Card, type values for the following fields:
FieldNecessityActionName on CardRequiredType the name that appears on your credit card.Card NumberRequiredType the 16-digit number that appears on your credit card. American Express uses a 15-digit number.Expiration DateRequiredType the expiration date for your credit card in the two-digit month and two-digit year format.CVC
RequiredType the three-digit number on the back of your credit card. American Express uses a 4-digit number found on the front of the credit card.If you selected PayPal:
Click Pay with PayPal.
Complete the actions on the PayPal website.
All projects within your organization share the same billing settings, including payment method.
Deploy your serverless instance. Click Confirm and Deploy Instance.
Important
Each Atlas project supports up to 25 clusters. Please contact Atlas support for questions or assistance regarding the cluster limit. To contact support, select Support from the left-hand navigation bar of the Atlas UI.
In Atlas, go to the Clusters page for your project.
If it is not already displayed, select the organization that contains your desired project from the Organizations menu in the navigation bar.
If it is not already displayed, select your desired project from the Projects menu in the navigation bar.
If the Clusters page is not already displayed, click Database in the sidebar.
Select a cluster type.
Use the tabs at the top of the screen to select your cluster type. You can deploy the following clusters:
- Serverless Instances
- Serverless instances require minimal configuration and are best for applications that aren't critical and experience low or variable traffic. To learn more about serverless instances, see Choose a Cluster Type.
- Shared Clusters
- Shared clusters include the
M0
,M2
, andM5
tiers. These low-cost cluster types are suitable for teams who are learning MongoDB or developing small proof-of-concept applications. You can begin your project with a shared cluster and upgrade to a production-ready tier at a future time. - Dedicated Clusters
- Dedicated clusters include
M10
and higher tiers. TheM10
andM20
tiers are suitable for development environments and low-traffic applications, while higher tiers can handle large datasets and high-traffic applications. Dedicated clusters can be deployed into a single geographical region or multiple geographical regions.
Select Serverless, then proceed to the next step to customize the configuration prior to deployment.
To create a shared cluster or a dedicated cluster, see Create a New Cluster for next steps.
Select your preferred Cloud Provider & Region.
The choice of cloud provider and region affects the network latency for clients accessing your serverless instance, the geographic location of the nodes in your serverless instance, and the cost of running the serverless instance.
Serverless instances support fewer regions than clusters. To learn more, see the region information for AWS, Google Cloud and Azure.
Configure backup for your serverless instance.
Select one of the following backup options:
Option | Description |
---|---|
Serverless Continuous Backup | Atlas takes incremental snapshots of the data in your
serverless instance every six hours and lets you restore the
data from a selected point in time within the last 72 hours.
Atlas also takes daily snapshots and retains these daily
snapshots for 35 days. To learn more, see
Serverless Instance Costs. |
Basic Backup | Atlas takes incremental snapshots of the data in your
serverless instance every six hours and retains only the two
most recent snapshots. You can use this option for free. |
Specify the Serverless Instance Details.
From the Serverless Instance Details section, you can:
Specify the Serverless Instance Name.
This is the serverless instance name as it appears in Atlas. You can't change the serverless instance name once you deploy it.
click to enlargeServerless instance names can't exceed 64 characters in length.
Important
Atlas truncates the serverless instance name to 23 characters in its internal interactions. In practice, this means:
Serverless instance names shorter than 23 characters can't end with hyphen or dash (
-
).Serverless instance names 23 characters or longer can't use a hyphen or dash (
-
) as its 23rd character.The first 23 characters in a serverless instance name must be unique within a project.
Don't include sensitive information in your serverless instance name.
Apply tags to the serverless instance.
Important
Don't include sensitive information such as Personally Identifiable Information (PII) or Protected Health Information (PHI) in your resource tags. Other MongoDB services, such as Billing, can access resource tags. Resource tags are not intended for private and sensitive data. To learn more, see Sensitive Information.
Update your Billing Address details as needed.
Field | Necessity | Action |
---|---|---|
Billing Email Address | Optional | Type the email address to which Atlas should send billing alerts. By default, Atlas sends billing alerts to the Organization Owners and Billing Admins.
|
Company Name | Optional | Type the name of the company for your billing address. |
Country | Required | Select the country for your billing address. You can also
start typing the name of the country and then select it from
the filtered list of countries. |
Street Address | Required | Type the street address for your billing address. |
Apt/Suite/Floor | Optional | Type an the apartment, suite, or floor for your
billing address. |
City | Required | Type the name of the city for your billing address. |
State/Province/Region | Required | Type or select the political subdivision in which your billing address exists. The label and field change depending on what you selected as your Country:
|
ZIP or Postal Code | Required | Type the ZIP (U.S.) or Postal Code (other countries) for your
billing address. |
VAT Number | Conditional | Atlas displays the VAT ID field if you select a country other than the United States. To learn more about VAT, see VAT ID. If your company's billing address is in a country other than
the United States (USA), Atlas typically charges VAT if you do
not enter a valid ImportantIf your billing address is in Ireland or certain Canadian provinces,
Atlas always charges VAT, even with a valid To learn more about VAT by region, see International Usage and Taxation. |
Update your Payment Method details as needed.
Click the radio button for Credit Card or Paypal.
If you selected Credit Card, type values for the following fields:
FieldNecessityActionName on CardRequiredType the name that appears on your credit card.Card NumberRequiredType the 16-digit number that appears on your credit card. American Express uses a 15-digit number.Expiration DateRequiredType the expiration date for your credit card in the two-digit month and two-digit year format.CVC
RequiredType the three-digit number on the back of your credit card. American Express uses a 4-digit number found on the front of the credit card.If you selected PayPal:
Click Pay with PayPal.
Complete the actions on the PayPal website.
All projects within your organization share the same billing settings, including payment method.
Deploy your serverless instance. Click Confirm and Deploy Instance.
Important
Each Atlas project supports up to 25 clusters. Please contact Atlas support for questions or assistance regarding the cluster limit. To contact support, select Support from the left-hand navigation bar of the Atlas UI.