cluster
infrablocks/cluster/mongodbatlas
A Terraform module for creating a MongoDB cluster in MongoDB Atlas.
Terraform MongoDB Atlas 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
| Name | Type | Description | Default |
|---|---|---|---|
| cloud_provider | object({ name: string, | Cloud provider configuration for the cluster. | required |
| deployment_identifier | string | An identifier for this instantiation. | required |
| component | string | The component this project will contain. | required |
| project_id | string | The ID of the project within which to create the cluster. | required |
| auto_scaling | object({ disk_gb: object({ | Auto-scaling configuration for the cluster. | {
"compute": {
"enabled": false,
|
| database_users | list(object({ username: st | A list of database users to create for the cluster | [] |
| cluster_type | string | The type of cluster to create. One of ["REPLICASET", "SHARDED", "GEOSHARDED"]. | "REPLICASET" |
| mongo_db_major_version | string | The version of MongoDB to deploy to the cluster. One of ["3.6", "4.0", "4.2", "4 | "4.4" |
| disk_size_gb | number | The capacity, in GB, of each cluster instance host's root volume. AWS / GCP only | null |
| number_of_shards | number | The number of shards in the cluster. | 1 |
| labels | map(string) | A map of labels to be applied to created resources, in addition to the defaults. | {} |
cluster_idconnection_strings