Cluster
mongodbatlas..Cluster provides a Cluster resource. The resource lets you create, edit and delete clusters. The resource requires your Project ID.
NOTE: Groups and projects are synonymous terms. You may find group_id in the official documentation.
IMPORTANT:
• Free tier cluster creation (M0) is not supported via API or by this Provider.
• Shared tier clusters (M2, M5) cannot be upgraded to higher tiers via API or by this Provider.
• Changes to cluster configurations can affect costs. Before making changes, please see Billing.
• If your Atlas project contains a custom role that uses actions introduced in a specific MongoDB version, you cannot create a cluster with a MongoDB version less than that version unless you delete the custom role.
Example Usage
Example AWS cluster
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
class MyStack : Stack
{
public MyStack()
{
var cluster_test = new Mongodbatlas.Cluster("cluster-test", new Mongodbatlas.ClusterArgs
{
AutoScalingDiskGbEnabled = true,
DiskSizeGb = 100,
MongoDbMajorVersion = "4.0",
NumShards = 1,
ProjectId = "<YOUR-PROJECT-ID>",
ProviderBackupEnabled = true,
ProviderDiskIops = 300,
ProviderEncryptEbsVolume = true,
ProviderInstanceSizeName = "M40",
ProviderName = "AWS",
ProviderRegionName = "US_EAST_1",
ProviderVolumeType = "STANDARD",
ReplicationFactor = 3,
});
}
}
Coming soon!
import pulumi
import pulumi_mongodbatlas as mongodbatlas
cluster_test = mongodbatlas.Cluster("cluster-test",
auto_scaling_disk_gb_enabled=True,
disk_size_gb=100,
mongo_db_major_version="4.0",
num_shards=1,
project_id="<YOUR-PROJECT-ID>",
provider_backup_enabled=True,
provider_disk_iops=300,
provider_encrypt_ebs_volume=True,
provider_instance_size_name="M40",
provider_name="AWS",
provider_region_name="US_EAST_1",
provider_volume_type="STANDARD",
replication_factor=3)import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const cluster_test = new mongodbatlas.Cluster("cluster-test", {
autoScalingDiskGbEnabled: true,
diskSizeGb: 100,
mongoDbMajorVersion: "4.0",
numShards: 1,
projectId: "<YOUR-PROJECT-ID>",
providerBackupEnabled: true,
providerDiskIops: 300,
providerEncryptEbsVolume: true,
providerInstanceSizeName: "M40",
//Provider Settings "block"
providerName: "AWS",
providerRegionName: "US_EAST_1",
providerVolumeType: "STANDARD",
replicationFactor: 3,
});Example Azure cluster.
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
class MyStack : Stack
{
public MyStack()
{
var test = new Mongodbatlas.Cluster("test", new Mongodbatlas.ClusterArgs
{
AutoScalingDiskGbEnabled = true,
MongoDbMajorVersion = "4.0",
NumShards = 1,
ProjectId = "<YOUR-PROJECT-ID>",
ProviderBackupEnabled = true,
ProviderDiskTypeName = "P6",
ProviderInstanceSizeName = "M30",
ProviderName = "AZURE",
ProviderRegionName = "US_EAST_2",
ReplicationFactor = 3,
});
}
}
Coming soon!
import pulumi
import pulumi_mongodbatlas as mongodbatlas
test = mongodbatlas.Cluster("test",
auto_scaling_disk_gb_enabled=True,
mongo_db_major_version="4.0",
num_shards=1,
project_id="<YOUR-PROJECT-ID>",
provider_backup_enabled=True,
provider_disk_type_name="P6",
provider_instance_size_name="M30",
provider_name="AZURE",
provider_region_name="US_EAST_2",
replication_factor=3)import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const test = new mongodbatlas.Cluster("test", {
autoScalingDiskGbEnabled: true,
mongoDbMajorVersion: "4.0",
numShards: 1,
projectId: "<YOUR-PROJECT-ID>",
providerBackupEnabled: true,
providerDiskTypeName: "P6",
providerInstanceSizeName: "M30",
//Provider Settings "block"
providerName: "AZURE",
providerRegionName: "US_EAST_2",
replicationFactor: 3,
});Example GCP cluster
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
class MyStack : Stack
{
public MyStack()
{
var test = new Mongodbatlas.Cluster("test", new Mongodbatlas.ClusterArgs
{
AutoScalingDiskGbEnabled = true,
DiskSizeGb = 40,
MongoDbMajorVersion = "4.0",
NumShards = 1,
ProjectId = "<YOUR-PROJECT-ID>",
ProviderBackupEnabled = true,
ProviderInstanceSizeName = "M30",
ProviderName = "GCP",
ProviderRegionName = "US_EAST_4",
ReplicationFactor = 3,
});
}
}
Coming soon!
import pulumi
import pulumi_mongodbatlas as mongodbatlas
test = mongodbatlas.Cluster("test",
auto_scaling_disk_gb_enabled=True,
disk_size_gb=40,
mongo_db_major_version="4.0",
num_shards=1,
project_id="<YOUR-PROJECT-ID>",
provider_backup_enabled=True,
provider_instance_size_name="M30",
provider_name="GCP",
provider_region_name="US_EAST_4",
replication_factor=3)import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const test = new mongodbatlas.Cluster("test", {
autoScalingDiskGbEnabled: true,
diskSizeGb: 40,
mongoDbMajorVersion: "4.0",
numShards: 1,
projectId: "<YOUR-PROJECT-ID>",
providerBackupEnabled: true,
providerInstanceSizeName: "M30",
//Provider Settings "block"
providerName: "GCP",
providerRegionName: "US_EAST_4",
replicationFactor: 3,
});Example Multi Region cluster
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
class MyStack : Stack
{
public MyStack()
{
var cluster_test = new Mongodbatlas.Cluster("cluster-test", new Mongodbatlas.ClusterArgs
{
ClusterType = "REPLICASET",
DiskSizeGb = 100,
NumShards = 1,
ProjectId = "<YOUR-PROJECT-ID>",
ProviderBackupEnabled = true,
ProviderDiskIops = 300,
ProviderInstanceSizeName = "M10",
ProviderName = "AWS",
ProviderVolumeType = "STANDARD",
ReplicationSpecs =
{
new Mongodbatlas.Inputs.ClusterReplicationSpecArgs
{
NumShards = 1,
RegionsConfig =
{
{
{ "electableNodes", 3 },
{ "priority", 7 },
{ "readOnlyNodes", 0 },
{ "regionName", "US_EAST_1" },
},
{
{ "electableNodes", 2 },
{ "priority", 6 },
{ "readOnlyNodes", 0 },
{ "regionName", "US_EAST_2" },
},
{
{ "electableNodes", 2 },
{ "priority", 5 },
{ "readOnlyNodes", 2 },
{ "regionName", "US_WEST_1" },
},
},
},
},
});
}
}
Coming soon!
import pulumi
import pulumi_mongodbatlas as mongodbatlas
cluster_test = mongodbatlas.Cluster("cluster-test",
cluster_type="REPLICASET",
disk_size_gb=100,
num_shards=1,
project_id="<YOUR-PROJECT-ID>",
provider_backup_enabled=True,
provider_disk_iops=300,
provider_instance_size_name="M10",
provider_name="AWS",
provider_volume_type="STANDARD",
replication_specs=[{
"num_shards": 1,
"regionsConfig": [
{
"electableNodes": 3,
"priority": 7,
"readOnlyNodes": 0,
"region_name": "US_EAST_1",
},
{
"electableNodes": 2,
"priority": 6,
"readOnlyNodes": 0,
"region_name": "US_EAST_2",
},
{
"electableNodes": 2,
"priority": 5,
"readOnlyNodes": 2,
"region_name": "US_WEST_1",
},
],
}])import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const cluster_test = new mongodbatlas.Cluster("cluster-test", {
clusterType: "REPLICASET",
diskSizeGb: 100,
numShards: 1,
projectId: "<YOUR-PROJECT-ID>",
providerBackupEnabled: true,
providerDiskIops: 300,
providerInstanceSizeName: "M10",
//Provider Settings "block"
providerName: "AWS",
providerVolumeType: "STANDARD",
replicationSpecs: [{
numShards: 1,
regionsConfigs: [
{
electableNodes: 3,
priority: 7,
readOnlyNodes: 0,
regionName: "US_EAST_1",
},
{
electableNodes: 2,
priority: 6,
readOnlyNodes: 0,
regionName: "US_EAST_2",
},
{
electableNodes: 2,
priority: 5,
readOnlyNodes: 2,
regionName: "US_WEST_1",
},
],
}],
});Example Global cluster
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
class MyStack : Stack
{
public MyStack()
{
var cluster_test = new Mongodbatlas.Cluster("cluster-test", new Mongodbatlas.ClusterArgs
{
ClusterType = "GEOSHARDED",
DiskSizeGb = 80,
NumShards = 1,
ProjectId = "<YOUR-PROJECT-ID>",
ProviderBackupEnabled = true,
ProviderDiskIops = 240,
ProviderInstanceSizeName = "M30",
ProviderName = "AWS",
ProviderVolumeType = "STANDARD",
ReplicationSpecs =
{
new Mongodbatlas.Inputs.ClusterReplicationSpecArgs
{
NumShards = 2,
RegionsConfig =
{
{
{ "electableNodes", 3 },
{ "priority", 7 },
{ "readOnlyNodes", 0 },
{ "regionName", "US_EAST_1" },
},
},
ZoneName = "Zone 1",
},
new Mongodbatlas.Inputs.ClusterReplicationSpecArgs
{
NumShards = 2,
RegionsConfig =
{
{
{ "electableNodes", 3 },
{ "priority", 7 },
{ "readOnlyNodes", 0 },
{ "regionName", "EU_CENTRAL_1" },
},
},
ZoneName = "Zone 2",
},
},
});
}
}
Coming soon!
import pulumi
import pulumi_mongodbatlas as mongodbatlas
cluster_test = mongodbatlas.Cluster("cluster-test",
cluster_type="GEOSHARDED",
disk_size_gb=80,
num_shards=1,
project_id="<YOUR-PROJECT-ID>",
provider_backup_enabled=True,
provider_disk_iops=240,
provider_instance_size_name="M30",
provider_name="AWS",
provider_volume_type="STANDARD",
replication_specs=[
{
"num_shards": 2,
"regionsConfig": [{
"electableNodes": 3,
"priority": 7,
"readOnlyNodes": 0,
"region_name": "US_EAST_1",
}],
"zoneName": "Zone 1",
},
{
"num_shards": 2,
"regionsConfig": [{
"electableNodes": 3,
"priority": 7,
"readOnlyNodes": 0,
"region_name": "EU_CENTRAL_1",
}],
"zoneName": "Zone 2",
},
])import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const cluster_test = new mongodbatlas.Cluster("cluster-test", {
clusterType: "GEOSHARDED",
diskSizeGb: 80,
numShards: 1,
projectId: "<YOUR-PROJECT-ID>",
providerBackupEnabled: true,
providerDiskIops: 240,
providerInstanceSizeName: "M30",
//Provider Settings "block"
providerName: "AWS",
providerVolumeType: "STANDARD",
replicationSpecs: [
{
numShards: 2,
regionsConfigs: [{
electableNodes: 3,
priority: 7,
readOnlyNodes: 0,
regionName: "US_EAST_1",
}],
zoneName: "Zone 1",
},
{
numShards: 2,
regionsConfigs: [{
electableNodes: 3,
priority: 7,
readOnlyNodes: 0,
regionName: "EU_CENTRAL_1",
}],
zoneName: "Zone 2",
},
],
});Example AWS Shared Tier cluster
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
class MyStack : Stack
{
public MyStack()
{
var cluster_test = new Mongodbatlas.Cluster("cluster-test", new Mongodbatlas.ClusterArgs
{
AutoScalingDiskGbEnabled = false,
BackingProviderName = "AWS",
DiskSizeGb = 2,
MongoDbMajorVersion = "4.2",
ProjectId = "<YOUR-PROJECT-ID>",
ProviderInstanceSizeName = "M2",
ProviderName = "TENANT",
ProviderRegionName = "US_EAST_1",
});
}
}
Coming soon!
import pulumi
import pulumi_mongodbatlas as mongodbatlas
cluster_test = mongodbatlas.Cluster("cluster-test",
auto_scaling_disk_gb_enabled="false",
backing_provider_name="AWS",
disk_size_gb="2",
mongo_db_major_version="4.2",
project_id="<YOUR-PROJECT-ID>",
provider_instance_size_name="M2",
provider_name="TENANT",
provider_region_name="US_EAST_1")import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const cluster_test = new mongodbatlas.Cluster("cluster-test", {
autoScalingDiskGbEnabled: false,
backingProviderName: "AWS",
diskSizeGb: 2,
//These must be the following values
mongoDbMajorVersion: "4.2",
projectId: "<YOUR-PROJECT-ID>",
providerInstanceSizeName: "M2",
//Provider Settings "block"
providerName: "TENANT",
providerRegionName: "US_EAST_1",
});Create a Cluster Resource
new Cluster(name: string, args: ClusterArgs, opts?: CustomResourceOptions);def Cluster(resource_name, opts=None, advanced_configuration=None, auto_scaling_disk_gb_enabled=None, backing_provider_name=None, backup_enabled=None, bi_connector=None, cluster_type=None, disk_size_gb=None, encryption_at_rest_provider=None, labels=None, mongo_db_major_version=None, name=None, num_shards=None, pit_enabled=None, project_id=None, provider_backup_enabled=None, provider_disk_iops=None, provider_disk_type_name=None, provider_encrypt_ebs_volume=None, provider_instance_size_name=None, provider_name=None, provider_region_name=None, provider_volume_type=None, replication_factor=None, replication_specs=None, __props__=None);func NewCluster(ctx *Context, name string, args ClusterArgs, opts ...ResourceOption) (*Cluster, error)public Cluster(string name, ClusterArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Cluster Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Cluster resource accepts the following input properties:
- Project
Id string The unique ID for the project to create the database user.
- Provider
Instance stringSize Name Atlas provides different instance sizes, each with a default storage capacity and RAM size. The instance size you select is used for all the data-bearing servers in your cluster. See Create a Cluster
providerSettings.instanceSizeNamefor valid values and default resources.- Provider
Name string Cloud service provider on which the servers are provisioned.
- Advanced
Configuration ClusterAdvanced Configuration Args - Auto
Scaling boolDisk Gb Enabled Specifies whether disk auto-scaling is enabled. The default is true. - Set to
trueto enable disk auto-scaling. - Set tofalseto disable disk auto-scaling.- Backing
Provider stringName Cloud service provider on which the server for a multi-tenant cluster is provisioned.
- Backup
Enabled bool Legacy Option - Set to true to enable Atlas continuous backups for the cluster.
- Bi
Connector ClusterBi Connector Args Specifies BI Connector for Atlas configuration on this cluster. BI Connector for Atlas is only available for M10+ clusters. See BI Connector below for more details.
- Cluster
Type string Specifies the type of the cluster that you want to modify. You cannot convert a sharded cluster deployment to a replica set deployment.
- Disk
Size doubleGb The size in gigabytes of the server’s root volume. You can add capacity by increasing this number, up to a maximum possible value of 4096 (i.e., 4 TB). This value must be a positive integer.
- Encryption
At stringRest Provider Set the Encryption at Rest parameter. Possible values are AWS, GCP, AZURE or NONE. Requires M10 or greater and for backup_enabled to be false or omitted.
- Labels
List<Cluster
Label Args> Array containing key-value pairs that tag and categorize the cluster. Each key and value has a maximum length of 255 characters. You cannot set the key
Infrastructure Tool, it is used for internal purposes to track aggregate usage.- Mongo
Db stringMajor Version Version of the cluster to deploy. Atlas supports the following MongoDB versions for M10+ clusters:
3.6,4.0, or4.2. You must set this value to4.2ifprovider_instance_size_nameis either M2 or M5.- Name string
Name of the cluster as it appears in Atlas. Once the cluster is created, its name cannot be changed.
- Num
Shards int Number of shards to deploy in the specified zone.
- Pit
Enabled bool - Flag that indicates if the cluster uses Point-in-Time backups. If set to true, provider_backup_enabled must also be set to true.
- Provider
Backup boolEnabled Flag indicating if the cluster uses Cloud Provider Snapshots for backups.
- Provider
Disk intIops The maximum input/output operations per second (IOPS) the system can perform. The possible values depend on the selected providerSettings.instanceSizeName and diskSizeGB.
- Provider
Disk stringType Name Azure disk type of the server’s root volume. If omitted, Atlas uses the default disk type for the selected providerSettings.instanceSizeName. Example disk types and associated storage sizes: P4 - 32GB, P6 - 64GB, P10 - 128GB, P20 - 512GB, P30 - 1024GB, P40 - 2048GB, P50 - 4095GB. More information and the most update to date disk types/storage sizes can be located at https://docs.atlas.mongodb.com/reference/api/clusters-create-one/.
- Provider
Encrypt boolEbs Volume If enabled, the Amazon EBS encryption feature encrypts the server’s root volume for both data at rest within the volume and for data moving between the volume and the instance.
- Provider
Region stringName Physical location of your MongoDB cluster. The region you choose can affect network latency for clients accessing your databases. Requires the Atlas Region name, see the reference list for AWS, GCP, Azure. Do not specify this field when creating a multi-region cluster using the replicationSpec document or a Global Cluster with the replicationSpecs array.
- Provider
Volume stringType The type of the volume. The possible values are:
STANDARDandPROVISIONED.PROVISIONEDrequired if setting IOPS higher than the default instance IOPS.- Replication
Factor int Number of replica set members. Each member keeps a copy of your databases, providing high availability and data redundancy. The possible values are 3, 5, or 7. The default value is 3.
- Replication
Specs List<ClusterReplication Spec Args> Configuration for cluster regions. See Replication Spec below for more details.
- Project
Id string The unique ID for the project to create the database user.
- Provider
Instance stringSize Name Atlas provides different instance sizes, each with a default storage capacity and RAM size. The instance size you select is used for all the data-bearing servers in your cluster. See Create a Cluster
providerSettings.instanceSizeNamefor valid values and default resources.- Provider
Name string Cloud service provider on which the servers are provisioned.
- Advanced
Configuration ClusterAdvanced Configuration - Auto
Scaling boolDisk Gb Enabled Specifies whether disk auto-scaling is enabled. The default is true. - Set to
trueto enable disk auto-scaling. - Set tofalseto disable disk auto-scaling.- Backing
Provider stringName Cloud service provider on which the server for a multi-tenant cluster is provisioned.
- Backup
Enabled bool Legacy Option - Set to true to enable Atlas continuous backups for the cluster.
- Bi
Connector ClusterBi Connector Specifies BI Connector for Atlas configuration on this cluster. BI Connector for Atlas is only available for M10+ clusters. See BI Connector below for more details.
- Cluster
Type string Specifies the type of the cluster that you want to modify. You cannot convert a sharded cluster deployment to a replica set deployment.
- Disk
Size float64Gb The size in gigabytes of the server’s root volume. You can add capacity by increasing this number, up to a maximum possible value of 4096 (i.e., 4 TB). This value must be a positive integer.
- Encryption
At stringRest Provider Set the Encryption at Rest parameter. Possible values are AWS, GCP, AZURE or NONE. Requires M10 or greater and for backup_enabled to be false or omitted.
- Labels
[]Cluster
Label Array containing key-value pairs that tag and categorize the cluster. Each key and value has a maximum length of 255 characters. You cannot set the key
Infrastructure Tool, it is used for internal purposes to track aggregate usage.- Mongo
Db stringMajor Version Version of the cluster to deploy. Atlas supports the following MongoDB versions for M10+ clusters:
3.6,4.0, or4.2. You must set this value to4.2ifprovider_instance_size_nameis either M2 or M5.- Name string
Name of the cluster as it appears in Atlas. Once the cluster is created, its name cannot be changed.
- Num
Shards int Number of shards to deploy in the specified zone.
- Pit
Enabled bool - Flag that indicates if the cluster uses Point-in-Time backups. If set to true, provider_backup_enabled must also be set to true.
- Provider
Backup boolEnabled Flag indicating if the cluster uses Cloud Provider Snapshots for backups.
- Provider
Disk intIops The maximum input/output operations per second (IOPS) the system can perform. The possible values depend on the selected providerSettings.instanceSizeName and diskSizeGB.
- Provider
Disk stringType Name Azure disk type of the server’s root volume. If omitted, Atlas uses the default disk type for the selected providerSettings.instanceSizeName. Example disk types and associated storage sizes: P4 - 32GB, P6 - 64GB, P10 - 128GB, P20 - 512GB, P30 - 1024GB, P40 - 2048GB, P50 - 4095GB. More information and the most update to date disk types/storage sizes can be located at https://docs.atlas.mongodb.com/reference/api/clusters-create-one/.
- Provider
Encrypt boolEbs Volume If enabled, the Amazon EBS encryption feature encrypts the server’s root volume for both data at rest within the volume and for data moving between the volume and the instance.
- Provider
Region stringName Physical location of your MongoDB cluster. The region you choose can affect network latency for clients accessing your databases. Requires the Atlas Region name, see the reference list for AWS, GCP, Azure. Do not specify this field when creating a multi-region cluster using the replicationSpec document or a Global Cluster with the replicationSpecs array.
- Provider
Volume stringType The type of the volume. The possible values are:
STANDARDandPROVISIONED.PROVISIONEDrequired if setting IOPS higher than the default instance IOPS.- Replication
Factor int Number of replica set members. Each member keeps a copy of your databases, providing high availability and data redundancy. The possible values are 3, 5, or 7. The default value is 3.
- Replication
Specs []ClusterReplication Spec Configuration for cluster regions. See Replication Spec below for more details.
- project
Id string The unique ID for the project to create the database user.
- provider
Instance stringSize Name Atlas provides different instance sizes, each with a default storage capacity and RAM size. The instance size you select is used for all the data-bearing servers in your cluster. See Create a Cluster
providerSettings.instanceSizeNamefor valid values and default resources.- provider
Name string Cloud service provider on which the servers are provisioned.
- advanced
Configuration ClusterAdvanced Configuration - auto
Scaling booleanDisk Gb Enabled Specifies whether disk auto-scaling is enabled. The default is true. - Set to
trueto enable disk auto-scaling. - Set tofalseto disable disk auto-scaling.- backing
Provider stringName Cloud service provider on which the server for a multi-tenant cluster is provisioned.
- backup
Enabled boolean Legacy Option - Set to true to enable Atlas continuous backups for the cluster.
- bi
Connector ClusterBi Connector Specifies BI Connector for Atlas configuration on this cluster. BI Connector for Atlas is only available for M10+ clusters. See BI Connector below for more details.
- cluster
Type string Specifies the type of the cluster that you want to modify. You cannot convert a sharded cluster deployment to a replica set deployment.
- disk
Size numberGb The size in gigabytes of the server’s root volume. You can add capacity by increasing this number, up to a maximum possible value of 4096 (i.e., 4 TB). This value must be a positive integer.
- encryption
At stringRest Provider Set the Encryption at Rest parameter. Possible values are AWS, GCP, AZURE or NONE. Requires M10 or greater and for backup_enabled to be false or omitted.
- labels
Cluster
Label[] Array containing key-value pairs that tag and categorize the cluster. Each key and value has a maximum length of 255 characters. You cannot set the key
Infrastructure Tool, it is used for internal purposes to track aggregate usage.- mongo
Db stringMajor Version Version of the cluster to deploy. Atlas supports the following MongoDB versions for M10+ clusters:
3.6,4.0, or4.2. You must set this value to4.2ifprovider_instance_size_nameis either M2 or M5.- name string
Name of the cluster as it appears in Atlas. Once the cluster is created, its name cannot be changed.
- num
Shards number Number of shards to deploy in the specified zone.
- pit
Enabled boolean - Flag that indicates if the cluster uses Point-in-Time backups. If set to true, provider_backup_enabled must also be set to true.
- provider
Backup booleanEnabled Flag indicating if the cluster uses Cloud Provider Snapshots for backups.
- provider
Disk numberIops The maximum input/output operations per second (IOPS) the system can perform. The possible values depend on the selected providerSettings.instanceSizeName and diskSizeGB.
- provider
Disk stringType Name Azure disk type of the server’s root volume. If omitted, Atlas uses the default disk type for the selected providerSettings.instanceSizeName. Example disk types and associated storage sizes: P4 - 32GB, P6 - 64GB, P10 - 128GB, P20 - 512GB, P30 - 1024GB, P40 - 2048GB, P50 - 4095GB. More information and the most update to date disk types/storage sizes can be located at https://docs.atlas.mongodb.com/reference/api/clusters-create-one/.
- provider
Encrypt booleanEbs Volume If enabled, the Amazon EBS encryption feature encrypts the server’s root volume for both data at rest within the volume and for data moving between the volume and the instance.
- provider
Region stringName Physical location of your MongoDB cluster. The region you choose can affect network latency for clients accessing your databases. Requires the Atlas Region name, see the reference list for AWS, GCP, Azure. Do not specify this field when creating a multi-region cluster using the replicationSpec document or a Global Cluster with the replicationSpecs array.
- provider
Volume stringType The type of the volume. The possible values are:
STANDARDandPROVISIONED.PROVISIONEDrequired if setting IOPS higher than the default instance IOPS.- replication
Factor number Number of replica set members. Each member keeps a copy of your databases, providing high availability and data redundancy. The possible values are 3, 5, or 7. The default value is 3.
- replication
Specs ClusterReplication Spec[] Configuration for cluster regions. See Replication Spec below for more details.
- project_
id str The unique ID for the project to create the database user.
- provider_
instance_ strsize_ name Atlas provides different instance sizes, each with a default storage capacity and RAM size. The instance size you select is used for all the data-bearing servers in your cluster. See Create a Cluster
providerSettings.instanceSizeNamefor valid values and default resources.- provider_
name str Cloud service provider on which the servers are provisioned.
- advanced_
configuration Dict[ClusterAdvanced Configuration] - auto_
scaling_ booldisk_ gb_ enabled Specifies whether disk auto-scaling is enabled. The default is true. - Set to
trueto enable disk auto-scaling. - Set tofalseto disable disk auto-scaling.- backing_
provider_ strname Cloud service provider on which the server for a multi-tenant cluster is provisioned.
- backup_
enabled bool Legacy Option - Set to true to enable Atlas continuous backups for the cluster.
- bi_
connector Dict[ClusterBi Connector] Specifies BI Connector for Atlas configuration on this cluster. BI Connector for Atlas is only available for M10+ clusters. See BI Connector below for more details.
- cluster_
type str Specifies the type of the cluster that you want to modify. You cannot convert a sharded cluster deployment to a replica set deployment.
- disk_
size_ floatgb The size in gigabytes of the server’s root volume. You can add capacity by increasing this number, up to a maximum possible value of 4096 (i.e., 4 TB). This value must be a positive integer.
- encryption_
at_ strrest_ provider Set the Encryption at Rest parameter. Possible values are AWS, GCP, AZURE or NONE. Requires M10 or greater and for backup_enabled to be false or omitted.
- labels
List[Cluster
Label] Array containing key-value pairs that tag and categorize the cluster. Each key and value has a maximum length of 255 characters. You cannot set the key
Infrastructure Tool, it is used for internal purposes to track aggregate usage.- mongo_
db_ strmajor_ version Version of the cluster to deploy. Atlas supports the following MongoDB versions for M10+ clusters:
3.6,4.0, or4.2. You must set this value to4.2ifprovider_instance_size_nameis either M2 or M5.- name str
Name of the cluster as it appears in Atlas. Once the cluster is created, its name cannot be changed.
- num_
shards float Number of shards to deploy in the specified zone.
- pit_
enabled bool - Flag that indicates if the cluster uses Point-in-Time backups. If set to true, provider_backup_enabled must also be set to true.
- provider_
backup_ boolenabled Flag indicating if the cluster uses Cloud Provider Snapshots for backups.
- provider_
disk_ floatiops The maximum input/output operations per second (IOPS) the system can perform. The possible values depend on the selected providerSettings.instanceSizeName and diskSizeGB.
- provider_
disk_ strtype_ name Azure disk type of the server’s root volume. If omitted, Atlas uses the default disk type for the selected providerSettings.instanceSizeName. Example disk types and associated storage sizes: P4 - 32GB, P6 - 64GB, P10 - 128GB, P20 - 512GB, P30 - 1024GB, P40 - 2048GB, P50 - 4095GB. More information and the most update to date disk types/storage sizes can be located at https://docs.atlas.mongodb.com/reference/api/clusters-create-one/.
- provider_
encrypt_ boolebs_ volume If enabled, the Amazon EBS encryption feature encrypts the server’s root volume for both data at rest within the volume and for data moving between the volume and the instance.
- provider_
region_ strname Physical location of your MongoDB cluster. The region you choose can affect network latency for clients accessing your databases. Requires the Atlas Region name, see the reference list for AWS, GCP, Azure. Do not specify this field when creating a multi-region cluster using the replicationSpec document or a Global Cluster with the replicationSpecs array.
- provider_
volume_ strtype The type of the volume. The possible values are:
STANDARDandPROVISIONED.PROVISIONEDrequired if setting IOPS higher than the default instance IOPS.- replication_
factor float Number of replica set members. Each member keeps a copy of your databases, providing high availability and data redundancy. The possible values are 3, 5, or 7. The default value is 3.
- replication_
specs List[ClusterReplication Spec] Configuration for cluster regions. See Replication Spec below for more details.
Outputs
All input properties are implicitly available as output properties. Additionally, the Cluster resource produces the following output properties:
- Cluster
Id string The cluster ID.
- Connection
Strings ClusterConnection Strings Set of connection strings that your applications use to connect to this cluster. More info in Connection-strings. Use the parameters in this object to connect your applications to this cluster. To learn more about the formats of connection strings, see Connection String Options. NOTE: Atlas returns the contents of this object after the cluster is operational, not while it builds the cluster. -
connection_strings.standard- Public mongodb:// connection string for this cluster. -connection_strings.standard_srv- Public mongodb+srv:// connection string for this cluster. The mongodb+srv protocol tells the driver to look up the seed list of hosts in DNS. Atlas synchronizes this list with the nodes in a cluster. If the connection string uses this URI format, you don’t need to append the seed list or change the URI if the nodes change. Use this URI format if your driver supports it. If it doesn’t, use connectionStrings.standard. -connection_strings.aws_private_link- Private-endpoint-aware mongodb://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a AWS PrivateLink connection to this cluster. -connection_strings.aws_private_link_srv- Private-endpoint-aware mongodb+srv://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a AWS PrivateLink connection to this cluster. Use this URI format if your driver supports it. If it doesn’t, use connectionStrings.awsPrivateLink. -connection_strings.private- Network-peering-endpoint-aware mongodb://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a network peering connection to this cluster. -connection_strings.private_srv- Network-peering-endpoint-aware mongodb+srv://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a network peering connection to this cluster.- Id string
- The provider-assigned unique ID for this managed resource.
- Mongo
Db stringVersion Version of MongoDB the cluster runs, in
major-version.minor-versionformat.- Mongo
Uri string Base connection string for the cluster. Atlas only displays this field after the cluster is operational, not while it builds the cluster.
- Mongo
Uri stringUpdated Lists when the connection string was last updated. The connection string changes, for example, if you change a replica set to a sharded cluster.
- Mongo
Uri stringWith Options connection string for connecting to the Atlas cluster. Includes the replicaSet, ssl, and authSource query parameters in the connection string with values appropriate for the cluster.
- Paused bool
Flag that indicates whether the cluster is paused or not.
- Snapshot
Backup List<ClusterPolicies Snapshot Backup Policy> current snapshot schedule and retention settings for the cluster.
- Srv
Address string Connection string for connecting to the Atlas cluster. The +srv modifier forces the connection to use TLS/SSL. See the mongoURI for additional options.
- State
Name string Current state of the cluster. The possible states are: - IDLE - CREATING - UPDATING - DELETING - DELETED - REPAIRING
- Cluster
Id string The cluster ID.
- Connection
Strings ClusterConnection Strings Set of connection strings that your applications use to connect to this cluster. More info in Connection-strings. Use the parameters in this object to connect your applications to this cluster. To learn more about the formats of connection strings, see Connection String Options. NOTE: Atlas returns the contents of this object after the cluster is operational, not while it builds the cluster. -
connection_strings.standard- Public mongodb:// connection string for this cluster. -connection_strings.standard_srv- Public mongodb+srv:// connection string for this cluster. The mongodb+srv protocol tells the driver to look up the seed list of hosts in DNS. Atlas synchronizes this list with the nodes in a cluster. If the connection string uses this URI format, you don’t need to append the seed list or change the URI if the nodes change. Use this URI format if your driver supports it. If it doesn’t, use connectionStrings.standard. -connection_strings.aws_private_link- Private-endpoint-aware mongodb://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a AWS PrivateLink connection to this cluster. -connection_strings.aws_private_link_srv- Private-endpoint-aware mongodb+srv://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a AWS PrivateLink connection to this cluster. Use this URI format if your driver supports it. If it doesn’t, use connectionStrings.awsPrivateLink. -connection_strings.private- Network-peering-endpoint-aware mongodb://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a network peering connection to this cluster. -connection_strings.private_srv- Network-peering-endpoint-aware mongodb+srv://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a network peering connection to this cluster.- Id string
- The provider-assigned unique ID for this managed resource.
- Mongo
Db stringVersion Version of MongoDB the cluster runs, in
major-version.minor-versionformat.- Mongo
Uri string Base connection string for the cluster. Atlas only displays this field after the cluster is operational, not while it builds the cluster.
- Mongo
Uri stringUpdated Lists when the connection string was last updated. The connection string changes, for example, if you change a replica set to a sharded cluster.
- Mongo
Uri stringWith Options connection string for connecting to the Atlas cluster. Includes the replicaSet, ssl, and authSource query parameters in the connection string with values appropriate for the cluster.
- Paused bool
Flag that indicates whether the cluster is paused or not.
- Snapshot
Backup []ClusterPolicies Snapshot Backup Policy current snapshot schedule and retention settings for the cluster.
- Srv
Address string Connection string for connecting to the Atlas cluster. The +srv modifier forces the connection to use TLS/SSL. See the mongoURI for additional options.
- State
Name string Current state of the cluster. The possible states are: - IDLE - CREATING - UPDATING - DELETING - DELETED - REPAIRING
- cluster
Id string The cluster ID.
- connection
Strings ClusterConnection Strings Set of connection strings that your applications use to connect to this cluster. More info in Connection-strings. Use the parameters in this object to connect your applications to this cluster. To learn more about the formats of connection strings, see Connection String Options. NOTE: Atlas returns the contents of this object after the cluster is operational, not while it builds the cluster. -
connection_strings.standard- Public mongodb:// connection string for this cluster. -connection_strings.standard_srv- Public mongodb+srv:// connection string for this cluster. The mongodb+srv protocol tells the driver to look up the seed list of hosts in DNS. Atlas synchronizes this list with the nodes in a cluster. If the connection string uses this URI format, you don’t need to append the seed list or change the URI if the nodes change. Use this URI format if your driver supports it. If it doesn’t, use connectionStrings.standard. -connection_strings.aws_private_link- Private-endpoint-aware mongodb://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a AWS PrivateLink connection to this cluster. -connection_strings.aws_private_link_srv- Private-endpoint-aware mongodb+srv://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a AWS PrivateLink connection to this cluster. Use this URI format if your driver supports it. If it doesn’t, use connectionStrings.awsPrivateLink. -connection_strings.private- Network-peering-endpoint-aware mongodb://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a network peering connection to this cluster. -connection_strings.private_srv- Network-peering-endpoint-aware mongodb+srv://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a network peering connection to this cluster.- id string
- The provider-assigned unique ID for this managed resource.
- mongo
Db stringVersion Version of MongoDB the cluster runs, in
major-version.minor-versionformat.- mongo
Uri string Base connection string for the cluster. Atlas only displays this field after the cluster is operational, not while it builds the cluster.
- mongo
Uri stringUpdated Lists when the connection string was last updated. The connection string changes, for example, if you change a replica set to a sharded cluster.
- mongo
Uri stringWith Options connection string for connecting to the Atlas cluster. Includes the replicaSet, ssl, and authSource query parameters in the connection string with values appropriate for the cluster.
- paused boolean
Flag that indicates whether the cluster is paused or not.
- snapshot
Backup ClusterPolicies Snapshot Backup Policy[] current snapshot schedule and retention settings for the cluster.
- srv
Address string Connection string for connecting to the Atlas cluster. The +srv modifier forces the connection to use TLS/SSL. See the mongoURI for additional options.
- state
Name string Current state of the cluster. The possible states are: - IDLE - CREATING - UPDATING - DELETING - DELETED - REPAIRING
- cluster_
id str The cluster ID.
- connection_
strings Dict[ClusterConnection Strings] Set of connection strings that your applications use to connect to this cluster. More info in Connection-strings. Use the parameters in this object to connect your applications to this cluster. To learn more about the formats of connection strings, see Connection String Options. NOTE: Atlas returns the contents of this object after the cluster is operational, not while it builds the cluster. -
connection_strings.standard- Public mongodb:// connection string for this cluster. -connection_strings.standard_srv- Public mongodb+srv:// connection string for this cluster. The mongodb+srv protocol tells the driver to look up the seed list of hosts in DNS. Atlas synchronizes this list with the nodes in a cluster. If the connection string uses this URI format, you don’t need to append the seed list or change the URI if the nodes change. Use this URI format if your driver supports it. If it doesn’t, use connectionStrings.standard. -connection_strings.aws_private_link- Private-endpoint-aware mongodb://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a AWS PrivateLink connection to this cluster. -connection_strings.aws_private_link_srv- Private-endpoint-aware mongodb+srv://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a AWS PrivateLink connection to this cluster. Use this URI format if your driver supports it. If it doesn’t, use connectionStrings.awsPrivateLink. -connection_strings.private- Network-peering-endpoint-aware mongodb://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a network peering connection to this cluster. -connection_strings.private_srv- Network-peering-endpoint-aware mongodb+srv://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a network peering connection to this cluster.- id str
- The provider-assigned unique ID for this managed resource.
- mongo_
db_ strversion Version of MongoDB the cluster runs, in
major-version.minor-versionformat.- mongo_
uri str Base connection string for the cluster. Atlas only displays this field after the cluster is operational, not while it builds the cluster.
- mongo_
uri_ strupdated Lists when the connection string was last updated. The connection string changes, for example, if you change a replica set to a sharded cluster.
- mongo_
uri_ strwith_ options connection string for connecting to the Atlas cluster. Includes the replicaSet, ssl, and authSource query parameters in the connection string with values appropriate for the cluster.
- paused bool
Flag that indicates whether the cluster is paused or not.
- snapshot_
backup_ List[Clusterpolicies Snapshot Backup Policy] current snapshot schedule and retention settings for the cluster.
- srv_
address str Connection string for connecting to the Atlas cluster. The +srv modifier forces the connection to use TLS/SSL. See the mongoURI for additional options.
- state_
name str Current state of the cluster. The possible states are: - IDLE - CREATING - UPDATING - DELETING - DELETED - REPAIRING
Look up an Existing Cluster Resource
Get an existing Cluster resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ClusterState, opts?: CustomResourceOptions): Clusterstatic get(resource_name, id, opts=None, advanced_configuration=None, auto_scaling_disk_gb_enabled=None, backing_provider_name=None, backup_enabled=None, bi_connector=None, cluster_id=None, cluster_type=None, connection_strings=None, disk_size_gb=None, encryption_at_rest_provider=None, labels=None, mongo_db_major_version=None, mongo_db_version=None, mongo_uri=None, mongo_uri_updated=None, mongo_uri_with_options=None, name=None, num_shards=None, paused=None, pit_enabled=None, project_id=None, provider_backup_enabled=None, provider_disk_iops=None, provider_disk_type_name=None, provider_encrypt_ebs_volume=None, provider_instance_size_name=None, provider_name=None, provider_region_name=None, provider_volume_type=None, replication_factor=None, replication_specs=None, snapshot_backup_policies=None, srv_address=None, state_name=None, __props__=None);func GetCluster(ctx *Context, name string, id IDInput, state *ClusterState, opts ...ResourceOption) (*Cluster, error)public static Cluster Get(string name, Input<string> id, ClusterState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Advanced
Configuration ClusterAdvanced Configuration Args - Auto
Scaling boolDisk Gb Enabled Specifies whether disk auto-scaling is enabled. The default is true. - Set to
trueto enable disk auto-scaling. - Set tofalseto disable disk auto-scaling.- Backing
Provider stringName Cloud service provider on which the server for a multi-tenant cluster is provisioned.
- Backup
Enabled bool Legacy Option - Set to true to enable Atlas continuous backups for the cluster.
- Bi
Connector ClusterBi Connector Args Specifies BI Connector for Atlas configuration on this cluster. BI Connector for Atlas is only available for M10+ clusters. See BI Connector below for more details.
- Cluster
Id string The cluster ID.
- Cluster
Type string Specifies the type of the cluster that you want to modify. You cannot convert a sharded cluster deployment to a replica set deployment.
- Connection
Strings ClusterConnection Strings Args Set of connection strings that your applications use to connect to this cluster. More info in Connection-strings. Use the parameters in this object to connect your applications to this cluster. To learn more about the formats of connection strings, see Connection String Options. NOTE: Atlas returns the contents of this object after the cluster is operational, not while it builds the cluster. -
connection_strings.standard- Public mongodb:// connection string for this cluster. -connection_strings.standard_srv- Public mongodb+srv:// connection string for this cluster. The mongodb+srv protocol tells the driver to look up the seed list of hosts in DNS. Atlas synchronizes this list with the nodes in a cluster. If the connection string uses this URI format, you don’t need to append the seed list or change the URI if the nodes change. Use this URI format if your driver supports it. If it doesn’t, use connectionStrings.standard. -connection_strings.aws_private_link- Private-endpoint-aware mongodb://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a AWS PrivateLink connection to this cluster. -connection_strings.aws_private_link_srv- Private-endpoint-aware mongodb+srv://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a AWS PrivateLink connection to this cluster. Use this URI format if your driver supports it. If it doesn’t, use connectionStrings.awsPrivateLink. -connection_strings.private- Network-peering-endpoint-aware mongodb://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a network peering connection to this cluster. -connection_strings.private_srv- Network-peering-endpoint-aware mongodb+srv://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a network peering connection to this cluster.- Disk
Size doubleGb The size in gigabytes of the server’s root volume. You can add capacity by increasing this number, up to a maximum possible value of 4096 (i.e., 4 TB). This value must be a positive integer.
- Encryption
At stringRest Provider Set the Encryption at Rest parameter. Possible values are AWS, GCP, AZURE or NONE. Requires M10 or greater and for backup_enabled to be false or omitted.
- Labels
List<Cluster
Label Args> Array containing key-value pairs that tag and categorize the cluster. Each key and value has a maximum length of 255 characters. You cannot set the key
Infrastructure Tool, it is used for internal purposes to track aggregate usage.- Mongo
Db stringMajor Version Version of the cluster to deploy. Atlas supports the following MongoDB versions for M10+ clusters:
3.6,4.0, or4.2. You must set this value to4.2ifprovider_instance_size_nameis either M2 or M5.- Mongo
Db stringVersion Version of MongoDB the cluster runs, in
major-version.minor-versionformat.- Mongo
Uri string Base connection string for the cluster. Atlas only displays this field after the cluster is operational, not while it builds the cluster.
- Mongo
Uri stringUpdated Lists when the connection string was last updated. The connection string changes, for example, if you change a replica set to a sharded cluster.
- Mongo
Uri stringWith Options connection string for connecting to the Atlas cluster. Includes the replicaSet, ssl, and authSource query parameters in the connection string with values appropriate for the cluster.
- Name string
Name of the cluster as it appears in Atlas. Once the cluster is created, its name cannot be changed.
- Num
Shards int Number of shards to deploy in the specified zone.
- Paused bool
Flag that indicates whether the cluster is paused or not.
- Pit
Enabled bool - Flag that indicates if the cluster uses Point-in-Time backups. If set to true, provider_backup_enabled must also be set to true.
- Project
Id string The unique ID for the project to create the database user.
- Provider
Backup boolEnabled Flag indicating if the cluster uses Cloud Provider Snapshots for backups.
- Provider
Disk intIops The maximum input/output operations per second (IOPS) the system can perform. The possible values depend on the selected providerSettings.instanceSizeName and diskSizeGB.
- Provider
Disk stringType Name Azure disk type of the server’s root volume. If omitted, Atlas uses the default disk type for the selected providerSettings.instanceSizeName. Example disk types and associated storage sizes: P4 - 32GB, P6 - 64GB, P10 - 128GB, P20 - 512GB, P30 - 1024GB, P40 - 2048GB, P50 - 4095GB. More information and the most update to date disk types/storage sizes can be located at https://docs.atlas.mongodb.com/reference/api/clusters-create-one/.
- Provider
Encrypt boolEbs Volume If enabled, the Amazon EBS encryption feature encrypts the server’s root volume for both data at rest within the volume and for data moving between the volume and the instance.
- Provider
Instance stringSize Name Atlas provides different instance sizes, each with a default storage capacity and RAM size. The instance size you select is used for all the data-bearing servers in your cluster. See Create a Cluster
providerSettings.instanceSizeNamefor valid values and default resources.- Provider
Name string Cloud service provider on which the servers are provisioned.
- Provider
Region stringName Physical location of your MongoDB cluster. The region you choose can affect network latency for clients accessing your databases. Requires the Atlas Region name, see the reference list for AWS, GCP, Azure. Do not specify this field when creating a multi-region cluster using the replicationSpec document or a Global Cluster with the replicationSpecs array.
- Provider
Volume stringType The type of the volume. The possible values are:
STANDARDandPROVISIONED.PROVISIONEDrequired if setting IOPS higher than the default instance IOPS.- Replication
Factor int Number of replica set members. Each member keeps a copy of your databases, providing high availability and data redundancy. The possible values are 3, 5, or 7. The default value is 3.
- Replication
Specs List<ClusterReplication Spec Args> Configuration for cluster regions. See Replication Spec below for more details.
- Snapshot
Backup List<ClusterPolicies Snapshot Backup Policy Args> current snapshot schedule and retention settings for the cluster.
- Srv
Address string Connection string for connecting to the Atlas cluster. The +srv modifier forces the connection to use TLS/SSL. See the mongoURI for additional options.
- State
Name string Current state of the cluster. The possible states are: - IDLE - CREATING - UPDATING - DELETING - DELETED - REPAIRING
- Advanced
Configuration ClusterAdvanced Configuration - Auto
Scaling boolDisk Gb Enabled Specifies whether disk auto-scaling is enabled. The default is true. - Set to
trueto enable disk auto-scaling. - Set tofalseto disable disk auto-scaling.- Backing
Provider stringName Cloud service provider on which the server for a multi-tenant cluster is provisioned.
- Backup
Enabled bool Legacy Option - Set to true to enable Atlas continuous backups for the cluster.
- Bi
Connector ClusterBi Connector Specifies BI Connector for Atlas configuration on this cluster. BI Connector for Atlas is only available for M10+ clusters. See BI Connector below for more details.
- Cluster
Id string The cluster ID.
- Cluster
Type string Specifies the type of the cluster that you want to modify. You cannot convert a sharded cluster deployment to a replica set deployment.
- Connection
Strings ClusterConnection Strings Set of connection strings that your applications use to connect to this cluster. More info in Connection-strings. Use the parameters in this object to connect your applications to this cluster. To learn more about the formats of connection strings, see Connection String Options. NOTE: Atlas returns the contents of this object after the cluster is operational, not while it builds the cluster. -
connection_strings.standard- Public mongodb:// connection string for this cluster. -connection_strings.standard_srv- Public mongodb+srv:// connection string for this cluster. The mongodb+srv protocol tells the driver to look up the seed list of hosts in DNS. Atlas synchronizes this list with the nodes in a cluster. If the connection string uses this URI format, you don’t need to append the seed list or change the URI if the nodes change. Use this URI format if your driver supports it. If it doesn’t, use connectionStrings.standard. -connection_strings.aws_private_link- Private-endpoint-aware mongodb://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a AWS PrivateLink connection to this cluster. -connection_strings.aws_private_link_srv- Private-endpoint-aware mongodb+srv://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a AWS PrivateLink connection to this cluster. Use this URI format if your driver supports it. If it doesn’t, use connectionStrings.awsPrivateLink. -connection_strings.private- Network-peering-endpoint-aware mongodb://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a network peering connection to this cluster. -connection_strings.private_srv- Network-peering-endpoint-aware mongodb+srv://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a network peering connection to this cluster.- Disk
Size float64Gb The size in gigabytes of the server’s root volume. You can add capacity by increasing this number, up to a maximum possible value of 4096 (i.e., 4 TB). This value must be a positive integer.
- Encryption
At stringRest Provider Set the Encryption at Rest parameter. Possible values are AWS, GCP, AZURE or NONE. Requires M10 or greater and for backup_enabled to be false or omitted.
- Labels
[]Cluster
Label Array containing key-value pairs that tag and categorize the cluster. Each key and value has a maximum length of 255 characters. You cannot set the key
Infrastructure Tool, it is used for internal purposes to track aggregate usage.- Mongo
Db stringMajor Version Version of the cluster to deploy. Atlas supports the following MongoDB versions for M10+ clusters:
3.6,4.0, or4.2. You must set this value to4.2ifprovider_instance_size_nameis either M2 or M5.- Mongo
Db stringVersion Version of MongoDB the cluster runs, in
major-version.minor-versionformat.- Mongo
Uri string Base connection string for the cluster. Atlas only displays this field after the cluster is operational, not while it builds the cluster.
- Mongo
Uri stringUpdated Lists when the connection string was last updated. The connection string changes, for example, if you change a replica set to a sharded cluster.
- Mongo
Uri stringWith Options connection string for connecting to the Atlas cluster. Includes the replicaSet, ssl, and authSource query parameters in the connection string with values appropriate for the cluster.
- Name string
Name of the cluster as it appears in Atlas. Once the cluster is created, its name cannot be changed.
- Num
Shards int Number of shards to deploy in the specified zone.
- Paused bool
Flag that indicates whether the cluster is paused or not.
- Pit
Enabled bool - Flag that indicates if the cluster uses Point-in-Time backups. If set to true, provider_backup_enabled must also be set to true.
- Project
Id string The unique ID for the project to create the database user.
- Provider
Backup boolEnabled Flag indicating if the cluster uses Cloud Provider Snapshots for backups.
- Provider
Disk intIops The maximum input/output operations per second (IOPS) the system can perform. The possible values depend on the selected providerSettings.instanceSizeName and diskSizeGB.
- Provider
Disk stringType Name Azure disk type of the server’s root volume. If omitted, Atlas uses the default disk type for the selected providerSettings.instanceSizeName. Example disk types and associated storage sizes: P4 - 32GB, P6 - 64GB, P10 - 128GB, P20 - 512GB, P30 - 1024GB, P40 - 2048GB, P50 - 4095GB. More information and the most update to date disk types/storage sizes can be located at https://docs.atlas.mongodb.com/reference/api/clusters-create-one/.
- Provider
Encrypt boolEbs Volume If enabled, the Amazon EBS encryption feature encrypts the server’s root volume for both data at rest within the volume and for data moving between the volume and the instance.
- Provider
Instance stringSize Name Atlas provides different instance sizes, each with a default storage capacity and RAM size. The instance size you select is used for all the data-bearing servers in your cluster. See Create a Cluster
providerSettings.instanceSizeNamefor valid values and default resources.- Provider
Name string Cloud service provider on which the servers are provisioned.
- Provider
Region stringName Physical location of your MongoDB cluster. The region you choose can affect network latency for clients accessing your databases. Requires the Atlas Region name, see the reference list for AWS, GCP, Azure. Do not specify this field when creating a multi-region cluster using the replicationSpec document or a Global Cluster with the replicationSpecs array.
- Provider
Volume stringType The type of the volume. The possible values are:
STANDARDandPROVISIONED.PROVISIONEDrequired if setting IOPS higher than the default instance IOPS.- Replication
Factor int Number of replica set members. Each member keeps a copy of your databases, providing high availability and data redundancy. The possible values are 3, 5, or 7. The default value is 3.
- Replication
Specs []ClusterReplication Spec Configuration for cluster regions. See Replication Spec below for more details.
- Snapshot
Backup []ClusterPolicies Snapshot Backup Policy current snapshot schedule and retention settings for the cluster.
- Srv
Address string Connection string for connecting to the Atlas cluster. The +srv modifier forces the connection to use TLS/SSL. See the mongoURI for additional options.
- State
Name string Current state of the cluster. The possible states are: - IDLE - CREATING - UPDATING - DELETING - DELETED - REPAIRING
- advanced
Configuration ClusterAdvanced Configuration - auto
Scaling booleanDisk Gb Enabled Specifies whether disk auto-scaling is enabled. The default is true. - Set to
trueto enable disk auto-scaling. - Set tofalseto disable disk auto-scaling.- backing
Provider stringName Cloud service provider on which the server for a multi-tenant cluster is provisioned.
- backup
Enabled boolean Legacy Option - Set to true to enable Atlas continuous backups for the cluster.
- bi
Connector ClusterBi Connector Specifies BI Connector for Atlas configuration on this cluster. BI Connector for Atlas is only available for M10+ clusters. See BI Connector below for more details.
- cluster
Id string The cluster ID.
- cluster
Type string Specifies the type of the cluster that you want to modify. You cannot convert a sharded cluster deployment to a replica set deployment.
- connection
Strings ClusterConnection Strings Set of connection strings that your applications use to connect to this cluster. More info in Connection-strings. Use the parameters in this object to connect your applications to this cluster. To learn more about the formats of connection strings, see Connection String Options. NOTE: Atlas returns the contents of this object after the cluster is operational, not while it builds the cluster. -
connection_strings.standard- Public mongodb:// connection string for this cluster. -connection_strings.standard_srv- Public mongodb+srv:// connection string for this cluster. The mongodb+srv protocol tells the driver to look up the seed list of hosts in DNS. Atlas synchronizes this list with the nodes in a cluster. If the connection string uses this URI format, you don’t need to append the seed list or change the URI if the nodes change. Use this URI format if your driver supports it. If it doesn’t, use connectionStrings.standard. -connection_strings.aws_private_link- Private-endpoint-aware mongodb://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a AWS PrivateLink connection to this cluster. -connection_strings.aws_private_link_srv- Private-endpoint-aware mongodb+srv://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a AWS PrivateLink connection to this cluster. Use this URI format if your driver supports it. If it doesn’t, use connectionStrings.awsPrivateLink. -connection_strings.private- Network-peering-endpoint-aware mongodb://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a network peering connection to this cluster. -connection_strings.private_srv- Network-peering-endpoint-aware mongodb+srv://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a network peering connection to this cluster.- disk
Size numberGb The size in gigabytes of the server’s root volume. You can add capacity by increasing this number, up to a maximum possible value of 4096 (i.e., 4 TB). This value must be a positive integer.
- encryption
At stringRest Provider Set the Encryption at Rest parameter. Possible values are AWS, GCP, AZURE or NONE. Requires M10 or greater and for backup_enabled to be false or omitted.
- labels
Cluster
Label[] Array containing key-value pairs that tag and categorize the cluster. Each key and value has a maximum length of 255 characters. You cannot set the key
Infrastructure Tool, it is used for internal purposes to track aggregate usage.- mongo
Db stringMajor Version Version of the cluster to deploy. Atlas supports the following MongoDB versions for M10+ clusters:
3.6,4.0, or4.2. You must set this value to4.2ifprovider_instance_size_nameis either M2 or M5.- mongo
Db stringVersion Version of MongoDB the cluster runs, in
major-version.minor-versionformat.- mongo
Uri string Base connection string for the cluster. Atlas only displays this field after the cluster is operational, not while it builds the cluster.
- mongo
Uri stringUpdated Lists when the connection string was last updated. The connection string changes, for example, if you change a replica set to a sharded cluster.
- mongo
Uri stringWith Options connection string for connecting to the Atlas cluster. Includes the replicaSet, ssl, and authSource query parameters in the connection string with values appropriate for the cluster.
- name string
Name of the cluster as it appears in Atlas. Once the cluster is created, its name cannot be changed.
- num
Shards number Number of shards to deploy in the specified zone.
- paused boolean
Flag that indicates whether the cluster is paused or not.
- pit
Enabled boolean - Flag that indicates if the cluster uses Point-in-Time backups. If set to true, provider_backup_enabled must also be set to true.
- project
Id string The unique ID for the project to create the database user.
- provider
Backup booleanEnabled Flag indicating if the cluster uses Cloud Provider Snapshots for backups.
- provider
Disk numberIops The maximum input/output operations per second (IOPS) the system can perform. The possible values depend on the selected providerSettings.instanceSizeName and diskSizeGB.
- provider
Disk stringType Name Azure disk type of the server’s root volume. If omitted, Atlas uses the default disk type for the selected providerSettings.instanceSizeName. Example disk types and associated storage sizes: P4 - 32GB, P6 - 64GB, P10 - 128GB, P20 - 512GB, P30 - 1024GB, P40 - 2048GB, P50 - 4095GB. More information and the most update to date disk types/storage sizes can be located at https://docs.atlas.mongodb.com/reference/api/clusters-create-one/.
- provider
Encrypt booleanEbs Volume If enabled, the Amazon EBS encryption feature encrypts the server’s root volume for both data at rest within the volume and for data moving between the volume and the instance.
- provider
Instance stringSize Name Atlas provides different instance sizes, each with a default storage capacity and RAM size. The instance size you select is used for all the data-bearing servers in your cluster. See Create a Cluster
providerSettings.instanceSizeNamefor valid values and default resources.- provider
Name string Cloud service provider on which the servers are provisioned.
- provider
Region stringName Physical location of your MongoDB cluster. The region you choose can affect network latency for clients accessing your databases. Requires the Atlas Region name, see the reference list for AWS, GCP, Azure. Do not specify this field when creating a multi-region cluster using the replicationSpec document or a Global Cluster with the replicationSpecs array.
- provider
Volume stringType The type of the volume. The possible values are:
STANDARDandPROVISIONED.PROVISIONEDrequired if setting IOPS higher than the default instance IOPS.- replication
Factor number Number of replica set members. Each member keeps a copy of your databases, providing high availability and data redundancy. The possible values are 3, 5, or 7. The default value is 3.
- replication
Specs ClusterReplication Spec[] Configuration for cluster regions. See Replication Spec below for more details.
- snapshot
Backup ClusterPolicies Snapshot Backup Policy[] current snapshot schedule and retention settings for the cluster.
- srv
Address string Connection string for connecting to the Atlas cluster. The +srv modifier forces the connection to use TLS/SSL. See the mongoURI for additional options.
- state
Name string Current state of the cluster. The possible states are: - IDLE - CREATING - UPDATING - DELETING - DELETED - REPAIRING
- advanced_
configuration Dict[ClusterAdvanced Configuration] - auto_
scaling_ booldisk_ gb_ enabled Specifies whether disk auto-scaling is enabled. The default is true. - Set to
trueto enable disk auto-scaling. - Set tofalseto disable disk auto-scaling.- backing_
provider_ strname Cloud service provider on which the server for a multi-tenant cluster is provisioned.
- backup_
enabled bool Legacy Option - Set to true to enable Atlas continuous backups for the cluster.
- bi_
connector Dict[ClusterBi Connector] Specifies BI Connector for Atlas configuration on this cluster. BI Connector for Atlas is only available for M10+ clusters. See BI Connector below for more details.
- cluster_
id str The cluster ID.
- cluster_
type str Specifies the type of the cluster that you want to modify. You cannot convert a sharded cluster deployment to a replica set deployment.
- connection_
strings Dict[ClusterConnection Strings] Set of connection strings that your applications use to connect to this cluster. More info in Connection-strings. Use the parameters in this object to connect your applications to this cluster. To learn more about the formats of connection strings, see Connection String Options. NOTE: Atlas returns the contents of this object after the cluster is operational, not while it builds the cluster. -
connection_strings.standard- Public mongodb:// connection string for this cluster. -connection_strings.standard_srv- Public mongodb+srv:// connection string for this cluster. The mongodb+srv protocol tells the driver to look up the seed list of hosts in DNS. Atlas synchronizes this list with the nodes in a cluster. If the connection string uses this URI format, you don’t need to append the seed list or change the URI if the nodes change. Use this URI format if your driver supports it. If it doesn’t, use connectionStrings.standard. -connection_strings.aws_private_link- Private-endpoint-aware mongodb://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a AWS PrivateLink connection to this cluster. -connection_strings.aws_private_link_srv- Private-endpoint-aware mongodb+srv://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a AWS PrivateLink connection to this cluster. Use this URI format if your driver supports it. If it doesn’t, use connectionStrings.awsPrivateLink. -connection_strings.private- Network-peering-endpoint-aware mongodb://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a network peering connection to this cluster. -connection_strings.private_srv- Network-peering-endpoint-aware mongodb+srv://connection strings for each interface VPC endpoint you configured to connect to this cluster. Returned only if you created a network peering connection to this cluster.- disk_
size_ floatgb The size in gigabytes of the server’s root volume. You can add capacity by increasing this number, up to a maximum possible value of 4096 (i.e., 4 TB). This value must be a positive integer.
- encryption_
at_ strrest_ provider Set the Encryption at Rest parameter. Possible values are AWS, GCP, AZURE or NONE. Requires M10 or greater and for backup_enabled to be false or omitted.
- labels
List[Cluster
Label] Array containing key-value pairs that tag and categorize the cluster. Each key and value has a maximum length of 255 characters. You cannot set the key
Infrastructure Tool, it is used for internal purposes to track aggregate usage.- mongo_
db_ strmajor_ version Version of the cluster to deploy. Atlas supports the following MongoDB versions for M10+ clusters:
3.6,4.0, or4.2. You must set this value to4.2ifprovider_instance_size_nameis either M2 or M5.- mongo_
db_ strversion Version of MongoDB the cluster runs, in
major-version.minor-versionformat.- mongo_
uri str Base connection string for the cluster. Atlas only displays this field after the cluster is operational, not while it builds the cluster.
- mongo_
uri_ strupdated Lists when the connection string was last updated. The connection string changes, for example, if you change a replica set to a sharded cluster.
- mongo_
uri_ strwith_ options connection string for connecting to the Atlas cluster. Includes the replicaSet, ssl, and authSource query parameters in the connection string with values appropriate for the cluster.
- name str
Name of the cluster as it appears in Atlas. Once the cluster is created, its name cannot be changed.
- num_
shards float Number of shards to deploy in the specified zone.
- paused bool
Flag that indicates whether the cluster is paused or not.
- pit_
enabled bool - Flag that indicates if the cluster uses Point-in-Time backups. If set to true, provider_backup_enabled must also be set to true.
- project_
id str The unique ID for the project to create the database user.
- provider_
backup_ boolenabled Flag indicating if the cluster uses Cloud Provider Snapshots for backups.
- provider_
disk_ floatiops The maximum input/output operations per second (IOPS) the system can perform. The possible values depend on the selected providerSettings.instanceSizeName and diskSizeGB.
- provider_
disk_ strtype_ name Azure disk type of the server’s root volume. If omitted, Atlas uses the default disk type for the selected providerSettings.instanceSizeName. Example disk types and associated storage sizes: P4 - 32GB, P6 - 64GB, P10 - 128GB, P20 - 512GB, P30 - 1024GB, P40 - 2048GB, P50 - 4095GB. More information and the most update to date disk types/storage sizes can be located at https://docs.atlas.mongodb.com/reference/api/clusters-create-one/.
- provider_
encrypt_ boolebs_ volume If enabled, the Amazon EBS encryption feature encrypts the server’s root volume for both data at rest within the volume and for data moving between the volume and the instance.
- provider_
instance_ strsize_ name Atlas provides different instance sizes, each with a default storage capacity and RAM size. The instance size you select is used for all the data-bearing servers in your cluster. See Create a Cluster
providerSettings.instanceSizeNamefor valid values and default resources.- provider_
name str Cloud service provider on which the servers are provisioned.
- provider_
region_ strname Physical location of your MongoDB cluster. The region you choose can affect network latency for clients accessing your databases. Requires the Atlas Region name, see the reference list for AWS, GCP, Azure. Do not specify this field when creating a multi-region cluster using the replicationSpec document or a Global Cluster with the replicationSpecs array.
- provider_
volume_ strtype The type of the volume. The possible values are:
STANDARDandPROVISIONED.PROVISIONEDrequired if setting IOPS higher than the default instance IOPS.- replication_
factor float Number of replica set members. Each member keeps a copy of your databases, providing high availability and data redundancy. The possible values are 3, 5, or 7. The default value is 3.
- replication_
specs List[ClusterReplication Spec] Configuration for cluster regions. See Replication Spec below for more details.
- snapshot_
backup_ List[Clusterpolicies Snapshot Backup Policy] current snapshot schedule and retention settings for the cluster.
- srv_
address str Connection string for connecting to the Atlas cluster. The +srv modifier forces the connection to use TLS/SSL. See the mongoURI for additional options.
- state_
name str Current state of the cluster. The possible states are: - IDLE - CREATING - UPDATING - DELETING - DELETED - REPAIRING
Supporting Types
ClusterAdvancedConfiguration
- Fail
Index boolKey Too Long When true, documents can only be updated or inserted if, for all indexed fields on the target collection, the corresponding index entries do not exceed 1024 bytes. When false, mongod writes documents that exceed the limit but does not index them.
- Javascript
Enabled bool When true, the cluster allows execution of operations that perform server-side executions of JavaScript. When false, the cluster disables execution of those operations.
- Minimum
Enabled stringTls Protocol Sets the minimum Transport Layer Security (TLS) version the cluster accepts for incoming connections.Valid values are:
- No
Table boolScan When true, the cluster disables the execution of any query that requires a collection scan to return results. When false, the cluster allows the execution of those operations.
- Oplog
Size intMb The custom oplog size of the cluster. Without a value that indicates that the cluster uses the default oplog size calculated by Atlas.
- Sample
Refresh intInterval Bi Connector Interval in seconds at which the mongosqld process re-samples data to create its relational schema. The default value is 300. The specified value must be a positive integer. Available only for Atlas deployments in which BI Connector for Atlas is enabled.
- Sample
Size intBi Connector Number of documents per database to sample when gathering schema information. Defaults to 100. Available only for Atlas deployments in which BI Connector for Atlas is enabled.
- Fail
Index boolKey Too Long When true, documents can only be updated or inserted if, for all indexed fields on the target collection, the corresponding index entries do not exceed 1024 bytes. When false, mongod writes documents that exceed the limit but does not index them.
- Javascript
Enabled bool When true, the cluster allows execution of operations that perform server-side executions of JavaScript. When false, the cluster disables execution of those operations.
- Minimum
Enabled stringTls Protocol Sets the minimum Transport Layer Security (TLS) version the cluster accepts for incoming connections.Valid values are:
- No
Table boolScan When true, the cluster disables the execution of any query that requires a collection scan to return results. When false, the cluster allows the execution of those operations.
- Oplog
Size intMb The custom oplog size of the cluster. Without a value that indicates that the cluster uses the default oplog size calculated by Atlas.
- Sample
Refresh intInterval Bi Connector Interval in seconds at which the mongosqld process re-samples data to create its relational schema. The default value is 300. The specified value must be a positive integer. Available only for Atlas deployments in which BI Connector for Atlas is enabled.
- Sample
Size intBi Connector Number of documents per database to sample when gathering schema information. Defaults to 100. Available only for Atlas deployments in which BI Connector for Atlas is enabled.
- fail
Index booleanKey Too Long When true, documents can only be updated or inserted if, for all indexed fields on the target collection, the corresponding index entries do not exceed 1024 bytes. When false, mongod writes documents that exceed the limit but does not index them.
- javascript
Enabled boolean When true, the cluster allows execution of operations that perform server-side executions of JavaScript. When false, the cluster disables execution of those operations.
- minimum
Enabled stringTls Protocol Sets the minimum Transport Layer Security (TLS) version the cluster accepts for incoming connections.Valid values are:
- no
Table booleanScan When true, the cluster disables the execution of any query that requires a collection scan to return results. When false, the cluster allows the execution of those operations.
- oplog
Size numberMb The custom oplog size of the cluster. Without a value that indicates that the cluster uses the default oplog size calculated by Atlas.
- sample
Refresh numberInterval Bi Connector Interval in seconds at which the mongosqld process re-samples data to create its relational schema. The default value is 300. The specified value must be a positive integer. Available only for Atlas deployments in which BI Connector for Atlas is enabled.
- sample
Size numberBi Connector Number of documents per database to sample when gathering schema information. Defaults to 100. Available only for Atlas deployments in which BI Connector for Atlas is enabled.
- fail_
index_ boolkey_ too_ long When true, documents can only be updated or inserted if, for all indexed fields on the target collection, the corresponding index entries do not exceed 1024 bytes. When false, mongod writes documents that exceed the limit but does not index them.
- javascript_
enabled bool When true, the cluster allows execution of operations that perform server-side executions of JavaScript. When false, the cluster disables execution of those operations.
- minimum_
enabled_ strtls_ protocol Sets the minimum Transport Layer Security (TLS) version the cluster accepts for incoming connections.Valid values are:
- no_
table_ boolscan When true, the cluster disables the execution of any query that requires a collection scan to return results. When false, the cluster allows the execution of those operations.
- oplog_
size_ floatmb The custom oplog size of the cluster. Without a value that indicates that the cluster uses the default oplog size calculated by Atlas.
- sample_
refresh_ floatinterval_ bi_ connector Interval in seconds at which the mongosqld process re-samples data to create its relational schema. The default value is 300. The specified value must be a positive integer. Available only for Atlas deployments in which BI Connector for Atlas is enabled.
- sample_
size_ floatbi_ connector Number of documents per database to sample when gathering schema information. Defaults to 100. Available only for Atlas deployments in which BI Connector for Atlas is enabled.
ClusterBiConnector
- Enabled string
Specifies whether or not BI Connector for Atlas is enabled on the cluster. - Set to
trueto enable BI Connector for Atlas. - Set tofalseto disable BI Connector for Atlas.- Read
Preference string Specifies the read preference to be used by BI Connector for Atlas on the cluster. Each BI Connector for Atlas read preference contains a distinct combination of readPreference and readPreferenceTags options. For details on BI Connector for Atlas read preferences, refer to the BI Connector Read Preferences Table.
- Enabled string
Specifies whether or not BI Connector for Atlas is enabled on the cluster. - Set to
trueto enable BI Connector for Atlas. - Set tofalseto disable BI Connector for Atlas.- Read
Preference string Specifies the read preference to be used by BI Connector for Atlas on the cluster. Each BI Connector for Atlas read preference contains a distinct combination of readPreference and readPreferenceTags options. For details on BI Connector for Atlas read preferences, refer to the BI Connector Read Preferences Table.
- enabled string
Specifies whether or not BI Connector for Atlas is enabled on the cluster. - Set to
trueto enable BI Connector for Atlas. - Set tofalseto disable BI Connector for Atlas.- read
Preference string Specifies the read preference to be used by BI Connector for Atlas on the cluster. Each BI Connector for Atlas read preference contains a distinct combination of readPreference and readPreferenceTags options. For details on BI Connector for Atlas read preferences, refer to the BI Connector Read Preferences Table.
- enabled str
Specifies whether or not BI Connector for Atlas is enabled on the cluster. - Set to
trueto enable BI Connector for Atlas. - Set tofalseto disable BI Connector for Atlas.- read_
preference str Specifies the read preference to be used by BI Connector for Atlas on the cluster. Each BI Connector for Atlas read preference contains a distinct combination of readPreference and readPreferenceTags options. For details on BI Connector for Atlas read preferences, refer to the BI Connector Read Preferences Table.
ClusterConnectionStrings
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Aws
Private Dictionary<string, object>Link - Aws
Private Dictionary<string, object>Link Srv - Private string
- Private
Srv string - Standard string
- Standard
Srv string
- Aws
Private map[string]interface{}Link - Aws
Private map[string]interface{}Link Srv - Private string
- Private
Srv string - Standard string
- Standard
Srv string
- aws
Private {[key: string]: any}Link - aws
Private {[key: string]: any}Link Srv - private string
- private
Srv string - standard string
- standard
Srv string
- aws
Private Dict[str, Any]Link - aws
Private Dict[str, Any]Link Srv - private str
- private
Srv str - standard str
- standard
Srv str
ClusterLabel
ClusterReplicationSpec
- Num
Shards int Number of shards to deploy in the specified zone.
- Id string
Unique identifer of the replication document for a zone in a Global Cluster.
- Regions
Configs List<ClusterReplication Spec Regions Config Args> Physical location of the region. Each regionsConfig document describes the region’s priority in elections and the number and type of MongoDB nodes Atlas deploys to the region. You must order each regionsConfigs document by regionsConfig.priority, descending. See Region Config below for more details.
- Zone
Name string Name for the zone in a Global Cluster.
- Num
Shards int Number of shards to deploy in the specified zone.
- Id string
Unique identifer of the replication document for a zone in a Global Cluster.
- Regions
Configs []ClusterReplication Spec Regions Config Physical location of the region. Each regionsConfig document describes the region’s priority in elections and the number and type of MongoDB nodes Atlas deploys to the region. You must order each regionsConfigs document by regionsConfig.priority, descending. See Region Config below for more details.
- Zone
Name string Name for the zone in a Global Cluster.
- num
Shards number Number of shards to deploy in the specified zone.
- id string
Unique identifer of the replication document for a zone in a Global Cluster.
- regions
Configs ClusterReplication Spec Regions Config[] Physical location of the region. Each regionsConfig document describes the region’s priority in elections and the number and type of MongoDB nodes Atlas deploys to the region. You must order each regionsConfigs document by regionsConfig.priority, descending. See Region Config below for more details.
- zone
Name string Name for the zone in a Global Cluster.
- num_
shards float Number of shards to deploy in the specified zone.
- id str
Unique identifer of the replication document for a zone in a Global Cluster.
- regions
Configs List[ClusterReplication Spec Regions Config] Physical location of the region. Each regionsConfig document describes the region’s priority in elections and the number and type of MongoDB nodes Atlas deploys to the region. You must order each regionsConfigs document by regionsConfig.priority, descending. See Region Config below for more details.
- zone
Name str Name for the zone in a Global Cluster.
ClusterReplicationSpecRegionsConfig
- Analytics
Nodes int The number of analytics nodes for Atlas to deploy to the region. Analytics nodes are useful for handling analytic data such as reporting queries from BI Connector for Atlas. Analytics nodes are read-only, and can never become the primary.
- Electable
Nodes int Number of electable nodes for Atlas to deploy to the region. Electable nodes can become the primary and can facilitate local reads.
- Priority int
Election priority of the region. For regions with only read-only nodes, set this value to 0.
- Read
Only intNodes Number of read-only nodes for Atlas to deploy to the region. Read-only nodes can never become the primary, but can facilitate local-reads. Specify 0 if you do not want any read-only nodes in the region.
- Region
Name string Name for the region specified.
- Analytics
Nodes int The number of analytics nodes for Atlas to deploy to the region. Analytics nodes are useful for handling analytic data such as reporting queries from BI Connector for Atlas. Analytics nodes are read-only, and can never become the primary.
- Electable
Nodes int Number of electable nodes for Atlas to deploy to the region. Electable nodes can become the primary and can facilitate local reads.
- Priority int
Election priority of the region. For regions with only read-only nodes, set this value to 0.
- Read
Only intNodes Number of read-only nodes for Atlas to deploy to the region. Read-only nodes can never become the primary, but can facilitate local-reads. Specify 0 if you do not want any read-only nodes in the region.
- Region
Name string Name for the region specified.
- analytics
Nodes number The number of analytics nodes for Atlas to deploy to the region. Analytics nodes are useful for handling analytic data such as reporting queries from BI Connector for Atlas. Analytics nodes are read-only, and can never become the primary.
- electable
Nodes number Number of electable nodes for Atlas to deploy to the region. Electable nodes can become the primary and can facilitate local reads.
- priority number
Election priority of the region. For regions with only read-only nodes, set this value to 0.
- read
Only numberNodes Number of read-only nodes for Atlas to deploy to the region. Read-only nodes can never become the primary, but can facilitate local-reads. Specify 0 if you do not want any read-only nodes in the region.
- region
Name string Name for the region specified.
- analytics
Nodes float The number of analytics nodes for Atlas to deploy to the region. Analytics nodes are useful for handling analytic data such as reporting queries from BI Connector for Atlas. Analytics nodes are read-only, and can never become the primary.
- electable
Nodes float Number of electable nodes for Atlas to deploy to the region. Electable nodes can become the primary and can facilitate local reads.
- priority float
Election priority of the region. For regions with only read-only nodes, set this value to 0.
- read
Only floatNodes Number of read-only nodes for Atlas to deploy to the region. Read-only nodes can never become the primary, but can facilitate local-reads. Specify 0 if you do not want any read-only nodes in the region.
- region_
name str Name for the region specified.
ClusterSnapshotBackupPolicy
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
ClusterSnapshotBackupPolicyPolicy
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Id string
Unique identifer of the replication document for a zone in a Global Cluster.
- Policy
Items List<ClusterSnapshot Backup Policy Policy Policy Item Args>
- Id string
Unique identifer of the replication document for a zone in a Global Cluster.
- Policy
Items []ClusterSnapshot Backup Policy Policy Policy Item
- id string
Unique identifer of the replication document for a zone in a Global Cluster.
- policy
Items ClusterSnapshot Backup Policy Policy Policy Item[]
- id str
Unique identifer of the replication document for a zone in a Global Cluster.
- policy
Items List[ClusterSnapshot Backup Policy Policy Policy Item]
ClusterSnapshotBackupPolicyPolicyPolicyItem
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Frequency
Interval int - Frequency
Type string - Id string
Unique identifer of the replication document for a zone in a Global Cluster.
- Retention
Unit string - Retention
Value int
- Frequency
Interval int - Frequency
Type string - Id string
Unique identifer of the replication document for a zone in a Global Cluster.
- Retention
Unit string - Retention
Value int
- frequency
Interval number - frequency
Type string - id string
Unique identifer of the replication document for a zone in a Global Cluster.
- retention
Unit string - retention
Value number
- frequency
Interval float - frequency
Type str - id str
Unique identifer of the replication document for a zone in a Global Cluster.
- retention
Unit str - retention
Value float
Package Details
- Repository
- https://github.com/pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlasTerraform Provider.