cluster

infrablocks/cluster/mongodbatlas

Terraform Module HCL MONGODBATLAS

A Terraform module for creating a MongoDB cluster in MongoDB Atlas.

Install
module "cluster" {
source = "infrablocks/cluster/mongodbatlas"
version = "2.1.0-rc.9"
}
plain text: /constructs/tfmod-infrablocks-cluster-mongodbatlas/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform MongoDB Atlas Cluster =============================== ![CircleCI](https://circleci.com/gh/infrablocks/terraform-mongodbatlas-cluster) A Terraform module for creating a MongoDB cluster in MongoDB Atlas. The MongoDB cluster requires: An existing project within a MongoDB organisation The MongoDB cluster consists of: TODO Usage ----- To use the module, include something like the following in your Terraform configuration: ``hcl-terraform module "mongodbatlas_cluster" { source = "infrablocks/cluster/mongodbatlas" version = "0.1.0" } ` As mentioned above, the cluster deploys into an existing project. Whilst the project can be created using any mechanism you like, the MongoDB Atlas Project module will create everything you need. See the docs for usage instructions. See the Terraform regi

Inputs (11)
NameTypeDescriptionDefault
cloud_providerobject({ name: string, Cloud provider configuration for the cluster. required
deployment_identifierstringAn identifier for this instantiation. required
componentstringThe component this project will contain. required
project_idstringThe ID of the project within which to create the cluster. required
auto_scalingobject({ disk_gb: object({Auto-scaling configuration for the cluster.{ "compute": { "enabled": false,
database_userslist(object({ username: stA list of database users to create for the cluster[]
cluster_typestringThe type of cluster to create. One of ["REPLICASET", "SHARDED", "GEOSHARDED"]."REPLICASET"
mongo_db_major_versionstringThe version of MongoDB to deploy to the cluster. One of ["3.6", "4.0", "4.2", "4"4.4"
disk_size_gbnumberThe capacity, in GB, of each cluster instance host's root volume. AWS / GCP onlynull
number_of_shardsnumberThe number of shards in the cluster.1
labelsmap(string)A map of labels to be applied to created resources, in addition to the defaults.{}
Outputs (2)
cluster_id
connection_strings
Resources (2)
mongodbatlas_clustermongodbatlas_database_user
Details
FrameworkTerraform Module
LanguageHCL
Version2.1.0-rc.9
Cloud MONGODBATLAS
Total downloads2.8k
Inputs11
Outputs2
Resources2
Examples1
Namespaceinfrablocks
Updated