{"id":51116589,"url":"https://github.com/oracle-devrel/terraform-oci-cloudbricks-mongodb","last_synced_at":"2026-06-24T22:30:39.951Z","repository":{"id":38240003,"uuid":"408836262","full_name":"oracle-devrel/terraform-oci-cloudbricks-mongodb","owner":"oracle-devrel","description":"OCI Cloud Bricks: MongoDB","archived":false,"fork":false,"pushed_at":"2025-01-21T20:09:15.000Z","size":100,"stargazers_count":3,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-21T13:48:36.182Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"upl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oracle-devrel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-21T13:42:45.000Z","updated_at":"2025-01-21T20:09:18.000Z","dependencies_parsed_at":"2024-05-16T17:28:13.441Z","dependency_job_id":"53709e07-bef4-4f2c-a08f-8aeba5466504","html_url":"https://github.com/oracle-devrel/terraform-oci-cloudbricks-mongodb","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":"oracle-devrel/repo-template","purl":"pkg:github/oracle-devrel/terraform-oci-cloudbricks-mongodb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Fterraform-oci-cloudbricks-mongodb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Fterraform-oci-cloudbricks-mongodb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Fterraform-oci-cloudbricks-mongodb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Fterraform-oci-cloudbricks-mongodb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oracle-devrel","download_url":"https://codeload.github.com/oracle-devrel/terraform-oci-cloudbricks-mongodb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-devrel%2Fterraform-oci-cloudbricks-mongodb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34752465,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-24T02:00:07.484Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-24T22:30:39.878Z","updated_at":"2026-06-24T22:30:39.936Z","avatar_url":"https://github.com/oracle-devrel.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OCI Cloud Bricks: MongoDB\n\n[![License: UPL](https://img.shields.io/badge/license-UPL-green)](https://img.shields.io/badge/license-UPL-green) [![Quality gate](https://sonarcloud.io/api/project_badges/quality_gate?project=oracle-devrel_terraform-oci-cloudbricks-mongodb)](https://sonarcloud.io/dashboard?id=oracle-devrel_terraform-oci-cloudbricks-mongodb)\n\n## Introduction\nThe following brick contains the logic to provision a MonoDB database cluster in a highly available architecture. This includes 3-7 Config Servers, 3-7 Shards and any number of query servers.\n\nThis brick is only supported on Oracle Linux for the time being.\n\n## Reference Architecture\nThe following is the reference architecture associated to this brick\n\n![Reference Architecture](./images/Bricks_Architectures-mongodb.jpg)\n\n### Prerequisites\n- Pre-baked Artifact and Network Compartments\n- Pre-baked VCN\n\n# Sample tfvar file\n\nIf using Fixes Shapes.\n\n```shell\n######################################## COMMON VARIABLES ######################################\nregion           = \"re-region-1\"\ntenancy_ocid     = \"ocid1.tenancy.oc1..aaaaaaaabcedfghijklmonoprstuvwxyz\"\nuser_ocid        = \"ocid1.user.oc1..aaaaaaaabcedfghijklmonoprstuvwxyz\"\nfingerprint      = \"fo:oo:ba:ar:ba:ar\"\nprivate_key_path = \"/absolute/path/to/api/key/your_api_key.pem\"\n######################################## COMMON VARIABLES ######################################\n######################################## ARTIFACT SPECIFIC VARIABLES ######################################\nssh_public_key                          = \"/absolute/path/to/api/key/your_ssh_public_key.pub\"\nssh_private_key                         = \"/absolute/path/to/api/key/your_ssh_private_key\"\ncompute_nsg_name                        = \"MY_NSG\"\nlinux_compute_instance_compartment_name = \"MY_ARTIFACT_COMPARTMENT\"\nlinux_compute_network_compartment_name  = \"MY_NETWORK_COMPARTMENT\"\nprivate_network_subnet_name             = \"MY_PRIVATE_SUBNET\"\nvcn_display_name                        = \"MY_VCN\"\n\nconfig_server_name    = \"MY_CONFIG_SERVER_NAME\"\nconfig_server_shape   = \"VM.Standard2.1\"\nconfig_server_count   = 3\nconfig_server_ad_list = [\"aBCD:RE-REGION-1-AD-1\", \"aBCD:RE-REGION-1-AD-2\",\"aBCD:RE-REGION-1-AD-3\" ]\nconfig_server_fd_list = [\"FAULT-DOMAIN-1\", \"FAULT-DOMAIN-2\", \"FAULT-DOMAIN-3\"]\n\nquery_server_name    = \"MY_QUERY_SERVER\"\nquery_server_shape   = \"VM.Standard2.1\"\nquery_server_count   = 2\nquery_server_ad_list = [\"aBCD:RE-REGION-1-AD-1\", \"aBCD:RE-REGION-1-AD-2\",\"aBCD:RE-REGION-1-AD-3\" ]\nquery_server_fd_list = [\"FAULT-DOMAIN-1\", \"FAULT-DOMAIN-2\", \"FAULT-DOMAIN-3\"]\n\nshard_replica_set_name    = \"MY_SHARD_SERVER_NAME\"\nshard_replica_set_shape   = \"VM.Standard2.1\"\nshard_replica_set_count   = 3\nshard_replica_set_ad_list = [\"aBCD:RE-REGION-1-AD-1\", \"aBCD:RE-REGION-1-AD-2\",\"aBCD:RE-REGION-1-AD-3\" ]\nshard_replica_set_fd_list = [\"FAULT-DOMAIN-1\", \"FAULT-DOMAIN-2\", \"FAULT-DOMAIN-3\"]\n\ninstance_backup_policy_level = \"bronze\"\n\nconfig_disk_size_in_gb     = \"50\"\nconfig_disk_vpus_per_gb    = \"10\"\nconfig_backup_policy_level = \"bronze\"\n\nquery_disk_size_in_gb     = \"50\"\nquery_disk_vpus_per_gb    = \"10\"\nquery_backup_policy_level = \"bronze\"\n\ndatabase_size_in_gb          = \"50\"\ndatabase_vpus_per_gb         = \"10\"\ndatabase_backup_policy_level = \"bronze\"\n\nmongodb_version = \"5.0\"\n######################################## ARTIFACT SPECIFIC VARIABLES ######################################\n```\n\nIf using Flex Shapes.\n\n```shell\n######################################## COMMON VARIABLES ######################################\nregion           = \"re-region-1\"\ntenancy_ocid     = \"ocid1.tenancy.oc1..aaaaaaaabcedfghijklmonoprstuvwxyz\"\nuser_ocid        = \"ocid1.user.oc1..aaaaaaaabcedfghijklmonoprstuvwxyz\"\nfingerprint      = \"fo:oo:ba:ar:ba:ar\"\nprivate_key_path = \"/absolute/path/to/api/key/your_api_key.pem\"\n######################################## COMMON VARIABLES ######################################\n######################################## ARTIFACT SPECIFIC VARIABLES ######################################\nssh_public_key                          = \"/absolute/path/to/api/key/your_ssh_public_key.pub\"\nssh_private_key                         = \"/absolute/path/to/api/key/your_ssh_private_key\"\ncompute_nsg_name                        = \"MY_NSG\"\nlinux_compute_instance_compartment_name = \"MY_ARTIFACT_COMPARTMENT\"\nlinux_compute_network_compartment_name  = \"MY_NETWORK_COMPARTMENT\"\nprivate_network_subnet_name             = \"MY_PRIVATE_SUBNET\"\nvcn_display_name                        = \"MY_VCN\"\n\nconfig_server_name          = \"MY_CONFIG_SERVER_NAME\"\nconfig_server_shape         = \"VM.Standard.E4.Flex\"\nconfig_server_count         = 3\nconfig_server_ad_list       = [\"aBCD:RE-REGION-1-AD-1\", \"aBCD:RE-REGION-1-AD-2\",\"aBCD:RE-REGION-1-AD-3\" ]\nconfig_server_fd_list       = [\"FAULT-DOMAIN-1\", \"FAULT-DOMAIN-2\", \"FAULT-DOMAIN-3\"]\nconfig_server_is_flex_shape = true\nconfig_server_ocpus         = 1\nconfig_server_memory_in_gb  = 16\n\nquery_server_name          = \"MY_QUERY_SERVER\"\nquery_server_shape         = \"VM.Standard.E4.Flex\"\nquery_server_count         = 2\nquery_server_ad_list       = [\"aBCD:RE-REGION-1-AD-1\", \"aBCD:RE-REGION-1-AD-2\",\"aBCD:RE-REGION-1-AD-3\" ]\nquery_server_fd_list       = [\"FAULT-DOMAIN-1\", \"FAULT-DOMAIN-2\", \"FAULT-DOMAIN-3\"]\nquery_server_is_flex_shape = true\nquery_server_ocpus         = 1\nquery_server_memory_in_gb  = 16\n\nshard_replica_set_name          = \"MY_SHARD_SERVER_NAME\"\nshard_replica_set_shape         = \"VM.Standard.E4.Flex\"\nshard_replica_set_count         = 3\nshard_replica_set_ad_list       = [\"aBCD:RE-REGION-1-AD-1\", \"aBCD:RE-REGION-1-AD-2\",\"aBCD:RE-REGION-1-AD-3\" ]\nshard_replica_set_fd_list       = [\"FAULT-DOMAIN-1\", \"FAULT-DOMAIN-2\", \"FAULT-DOMAIN-3\"]\nshard_replica_set_is_flex_shape = true\nshard_replica_set_ocpus         = 1\nshard_replica_set_memory_in_gb  = 16\n\ninstance_backup_policy_level = \"bronze\"\n\nconfig_disk_size_in_gb     = \"50\"\nconfig_disk_vpus_per_gb    = \"10\"\nconfig_backup_policy_level = \"bronze\"\n\nquery_disk_size_in_gb     = \"50\"\nquery_disk_vpus_per_gb    = \"10\"\nquery_backup_policy_level = \"bronze\"\n\ndatabase_size_in_gb          = \"50\"\ndatabase_vpus_per_gb         = \"10\"\ndatabase_backup_policy_level = \"bronze\"\n\nmongodb_version = \"5.0\" \n######################################## ARTIFACT SPECIFIC VARIABLES ######################################\n```\n\n### Variable Specific Conisderions\n- Compute ssh keys to later log into instances. Paths to the keys should be provided in variables `ssh_public_key` and `ssh_private_key`.\n- Variable `compute_nsg_name` is an optional network security group that can be attached.\n- Variable `mongodb_version` may be set to any of the supported version of MongoDB at the time of creating this brick `(4.2, 4.4 or 5.0)`.\n- Variables `config_server_count` and `shard_replica_set_count` are used to choose how many config and shard servers are provisioned respectively. These can be anywhere between `1-7`, though it is recommended to use at least `3` each for high availability setups to function correctly.\n- Variable `query_server_count` is used to choose how many query servers are provisioned. `2` is a reasonable amount to provision.\n- Variable `instance_backup_policy_level` specifies the name of the backup policy used on the instance boot volumes.\n- Variables `config_backup_policy_level` and `query_backup_policy_level` specificy the name of the backup policy used on the ISCSI disks storing log files on the config and query servers respectively.\n- Variable `database_backup_policy_level` specifices the name of the backup policy used on the ISCSI disks storing database data on the shard servers.\n- Variables `config_disk_size_in_gb` and `query_disk_size_in_gb` specify the size of the ISCSI disks in GB used to store log files on the config and query servers respectively. This can be between `50` and `32768`.\n- Variable `config_disk_vpus_per_gb` and `query_disk_vpus_per_gb` specify the VPUs per GB of the ISCSI disks used to store log files on the config and query servers respectively. The value must be between `0` and `120` and be multiple of 10.\n- Variable `database_size_in_gb` specifices the size of the ISCSI disks in GB used to store database data on the shard servers. This can be between `50` and `32768`.\n- Variable `database_vpus_per_gb` specifices the VPUs per GB of the ISCSI disks used to store database data on the shard servers. The value must be between `0` and `120` and be multiple of 10.\n- Flex Shapes:\n  - Variable `config_server_is_flex_shape` should be defined as true when the config server instances are a flex shape. The variables `config_server_ocpus` and `config_server_memory_in_gb` should then also be defined. Do not use any of these variables at all when using a standard shape as they are not needed and assume sensible defaults.\n  - Variable `query_server_is_flex_shape` should be defined as true when the query server instances are a flex shape. The variables `query_server_ocpus` and `query_server_memory_in_gb` should then also be defined. Do not use any of these variables at all when using a standard shape as they are not needed and assume sensible defaults.\n  - Variable `shard_replica_set_is_flex_shape` should be defined as true when the shard server instances are a flex shape. The variables `shard_replica_set_ocpus` and `shard_replica_set_memory_in_gb` should then also be defined. Do not use any of these variables at all when using a standard shape as they are not needed and assume sensible defaults.\n\n\n### Sample provider\nThe following is the base provider definition to be used with this module\n\n```shell\nterraform {\n  required_version = \"\u003e= 0.13.5\"\n}\nprovider \"oci\" {\n  region       = var.region\n  tenancy_ocid = var.tenancy_ocid\n  user_ocid        = var.user_ocid\n  fingerprint      = var.fingerprint\n  private_key_path = var.private_key_path\n  disable_auto_retries = \"true\"\n}\n\nprovider \"oci\" {\n  alias        = \"home\"\n  region       = data.oci_identity_region_subscriptions.home_region_subscriptions.region_subscriptions[0].region_name\n  tenancy_ocid = var.tenancy_ocid  \n  user_ocid        = var.user_ocid\n  fingerprint      = var.fingerprint\n  private_key_path = var.private_key_path\n  disable_auto_retries = \"true\"\n}\n```\n\n## Variable documentation\n\n## Requirements\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"requirement_terraform\"\u003e\u003c/a\u003e [terraform](#requirement\\_terraform) | \u003e= 0.13.5 |\n| \u003ca name=\"requirement_oci\"\u003e\u003c/a\u003e [oci](#requirement\\_oci) | \u003e= 4.36.0 |\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| \u003ca name=\"provider_null\"\u003e\u003c/a\u003e [null](#provider\\_null) | 3.1.0 |\n| \u003ca name=\"provider_oci\"\u003e\u003c/a\u003e [oci](#provider\\_oci) | 4.45.0 |\n| \u003ca name=\"provider_template\"\u003e\u003c/a\u003e [template](#provider\\_template) | 2.2.0 |\n\n## Modules\n\nNo modules.\n\n## Resources\n\n| Name | Type |\n|------|------|\n| [null_resource.format_disk_exec_config_server](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [null_resource.format_disk_exec_query_server](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [null_resource.format_disk_exec_shard_replica_set](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [null_resource.mongodb_config_create_replica_set](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [null_resource.mongodb_config_server_install_binaries](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [null_resource.mongodb_config_server_setup](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [null_resource.mongodb_query_server_install_binaries](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [null_resource.mongodb_query_setup](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [null_resource.mongodb_shard_replica_set_attach_shards](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [null_resource.mongodb_shard_replica_set_create_replica_set](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [null_resource.mongodb_shard_replica_set_install_binaries](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [null_resource.mongodb_shard_replica_set_setup_shards](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [null_resource.mount_disk_exec_config_server](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [null_resource.mount_disk_exec_query_server](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [null_resource.mount_disk_exec_shard_replica_set](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [null_resource.partition_disk_config_server](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [null_resource.partition_disk_query_server](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [null_resource.partition_disk_shard_replica_set](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [null_resource.provisioning_disk_config_server](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [null_resource.provisioning_disk_query_server](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [null_resource.provisioning_disk_shard_replica_set](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [null_resource.pvcreate_exec_config_server](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [null_resource.pvcreate_exec_query_server](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [null_resource.pvcreate_exec_shard_replica_set](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [null_resource.vgcreate_exec_config_server](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [null_resource.vgcreate_exec_query_server](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [null_resource.vgcreate_exec_shard_replica_set](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |\n| [oci_core_instance.config_server](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/resources/core_instance) | resource |\n| [oci_core_instance.query_server](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/resources/core_instance) | resource |\n| [oci_core_instance.shard_replica_set](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/resources/core_instance) | resource |\n| [oci_core_volume.ISCSIDisk_config_server](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/resources/core_volume) | resource |\n| [oci_core_volume.ISCSIDisk_query_server](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/resources/core_volume) | resource |\n| [oci_core_volume.ISCSIDisk_shard_replica_set](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/resources/core_volume) | resource |\n| [oci_core_volume_attachment.ISCSIDiskAttachment_config_server](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/resources/core_volume_attachment) | resource |\n| [oci_core_volume_attachment.ISCSIDiskAttachment_query_server](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/resources/core_volume_attachment) | resource |\n| [oci_core_volume_attachment.ISCSIDiskAttachment_shard_replica_set](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/resources/core_volume_attachment) | resource |\n| [oci_core_volume_backup_policy_assignment.backup_policy_assignment_ISCSI_Disk_config_server](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/resources/core_volume_backup_policy_assignment) | resource |\n| [oci_core_volume_backup_policy_assignment.backup_policy_assignment_ISCSI_Disk_query_server](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/resources/core_volume_backup_policy_assignment) | resource |\n| [oci_core_volume_backup_policy_assignment.backup_policy_assignment_ISCSI_Disk_shard_replica_set](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/resources/core_volume_backup_policy_assignment) | resource |\n| [oci_core_volume_backup_policy_assignment.backup_policy_assignment_config_server](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/resources/core_volume_backup_policy_assignment) | resource |\n| [oci_core_volume_backup_policy_assignment.backup_policy_assignment_query_server](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/resources/core_volume_backup_policy_assignment) | resource |\n| [oci_core_volume_backup_policy_assignment.backup_policy_assignment_shard_replica_set](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/resources/core_volume_backup_policy_assignment) | resource |\n| [oci_core_images.ORACLELINUX](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/data-sources/core_images) | data source |\n| [oci_core_network_security_groups.NSG](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/data-sources/core_network_security_groups) | data source |\n| [oci_core_subnets.PRIVATESUBNET](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/data-sources/core_subnets) | data source |\n| [oci_core_vcns.VCN](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/data-sources/core_vcns) | data source |\n| [oci_core_volume_backup_policies.CONFIGBACKUPPOLICY](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/data-sources/core_volume_backup_policies) | data source |\n| [oci_core_volume_backup_policies.DATABASEBACKUPPOLICY](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/data-sources/core_volume_backup_policies) | data source |\n| [oci_core_volume_backup_policies.INSTANCEBACKUPPOLICY](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/data-sources/core_volume_backup_policies) | data source |\n| [oci_core_volume_backup_policies.QUERYBACKUPPOLICY](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/data-sources/core_volume_backup_policies) | data source |\n| [oci_identity_compartments.COMPARTMENTS](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/data-sources/identity_compartments) | data source |\n| [oci_identity_compartments.NWCOMPARTMENTS](https://registry.terraform.io/providers/hashicorp/oci/latest/docs/data-sources/identity_compartments) | data source |\n| [template_file.attach_shards_replica_set_sh](https://registry.terraform.io/providers/hashicorp/template/latest/docs/data-sources/file) | data source |\n| [template_file.install_mongo_binaries_sh](https://registry.terraform.io/providers/hashicorp/template/latest/docs/data-sources/file) | data source |\n| [template_file.setup_config_server_sh](https://registry.terraform.io/providers/hashicorp/template/latest/docs/data-sources/file) | data source |\n| [template_file.setup_shard_replica_set_sh](https://registry.terraform.io/providers/hashicorp/template/latest/docs/data-sources/file) | data source |\n\n## Inputs\n\n| Name | Description | Type | Default | Required |\n|------|-------------|------|---------|:--------:|\n| \u003ca name=\"input_compute_nsg_name\"\u003e\u003c/a\u003e [compute\\_nsg\\_name](#input\\_compute\\_nsg\\_name) | Name of the NSG associated to the computes | `string` | `\"\"` | no |\n| \u003ca name=\"input_config_backup_policy_level\"\u003e\u003c/a\u003e [config\\_backup\\_policy\\_level](#input\\_config\\_backup\\_policy\\_level) | The backup policy of config server ISCSI disks | `any` | n/a | yes |\n| \u003ca name=\"input_config_disk_size_in_gb\"\u003e\u003c/a\u003e [config\\_disk\\_size\\_in\\_gb](#input\\_config\\_disk\\_size\\_in\\_gb) | The size of the attached disk to the config server instances, stores logging data | `any` | n/a | yes |\n| \u003ca name=\"input_config_disk_vpus_per_gb\"\u003e\u003c/a\u003e [config\\_disk\\_vpus\\_per\\_gb](#input\\_config\\_disk\\_vpus\\_per\\_gb) | The VPUS of the attached disk to the config server instances | `any` | n/a | yes |\n| \u003ca name=\"input_config_server_ad_list\"\u003e\u003c/a\u003e [config\\_server\\_ad\\_list](#input\\_config\\_server\\_ad\\_list) | The availability domains to provision the config server instances in | `any` | n/a | yes |\n| \u003ca name=\"input_config_server_count\"\u003e\u003c/a\u003e [config\\_server\\_count](#input\\_config\\_server\\_count) | The number of config server instances to provision | `any` | n/a | yes |\n| \u003ca name=\"input_config_server_fd_list\"\u003e\u003c/a\u003e [config\\_server\\_fd\\_list](#input\\_config\\_server\\_fd\\_list) | The fault domains to provision the config server instances in | `any` | n/a | yes |\n| \u003ca name=\"input_config_server_is_flex_shape\"\u003e\u003c/a\u003e [config\\_server\\_is\\_flex\\_shape](#input\\_config\\_server\\_is\\_flex\\_shape) | Boolean to determine if the config server instances are flex or not | `bool` | `false` | no |\n| \u003ca name=\"input_config_server_memory_in_gb\"\u003e\u003c/a\u003e [config\\_server\\_memory\\_in\\_gb](#input\\_config\\_server\\_memory\\_in\\_gb) | The amount of memory in GB for the config server instances to use when flex shape is enabled | `string` | `\"\"` | no |\n| \u003ca name=\"input_config_server_name\"\u003e\u003c/a\u003e [config\\_server\\_name](#input\\_config\\_server\\_name) | The name given to the config server instances | `any` | n/a | yes |\n| \u003ca name=\"input_config_server_ocpus\"\u003e\u003c/a\u003e [config\\_server\\_ocpus](#input\\_config\\_server\\_ocpus) | The number of OCPUS for the config server instances to use when flex shape is enabled | `string` | `\"\"` | no |\n| \u003ca name=\"input_config_server_shape\"\u003e\u003c/a\u003e [config\\_server\\_shape](#input\\_config\\_server\\_shape) | The shape for the config server instances to use | `any` | n/a | yes |\n| \u003ca name=\"input_database_backup_policy_level\"\u003e\u003c/a\u003e [database\\_backup\\_policy\\_level](#input\\_database\\_backup\\_policy\\_level) | Backup policy level for Database ISCSI disks | `any` | n/a | yes |\n| \u003ca name=\"input_database_size_in_gb\"\u003e\u003c/a\u003e [database\\_size\\_in\\_gb](#input\\_database\\_size\\_in\\_gb) | The size of the attached disk to the shard server instances, stores database data | `any` | n/a | yes |\n| \u003ca name=\"input_database_vpus_per_gb\"\u003e\u003c/a\u003e [database\\_vpus\\_per\\_gb](#input\\_database\\_vpus\\_per\\_gb) | The VPUS of the attached disk to the shard server instances | `any` | n/a | yes |\n| \u003ca name=\"input_fingerprint\"\u003e\u003c/a\u003e [fingerprint](#input\\_fingerprint) | API Key Fingerprint for user\\_ocid derived from public API Key imported in OCI User config | `any` | n/a | yes |\n| \u003ca name=\"input_instance_backup_policy_level\"\u003e\u003c/a\u003e [instance\\_backup\\_policy\\_level](#input\\_instance\\_backup\\_policy\\_level) | The backup policy of all instances boot volumes | `any` | n/a | yes |\n| \u003ca name=\"input_linux_compute_instance_compartment_name\"\u003e\u003c/a\u003e [linux\\_compute\\_instance\\_compartment\\_name](#input\\_linux\\_compute\\_instance\\_compartment\\_name) | Defines the compartment name where the infrastructure will be created | `any` | n/a | yes |\n| \u003ca name=\"input_linux_compute_network_compartment_name\"\u003e\u003c/a\u003e [linux\\_compute\\_network\\_compartment\\_name](#input\\_linux\\_compute\\_network\\_compartment\\_name) | Defines the compartment where the Network is currently located | `any` | n/a | yes |\n| \u003ca name=\"input_mongodb_version\"\u003e\u003c/a\u003e [mongodb\\_version](#input\\_mongodb\\_version) | The version of MongoDB used in the setup | `any` | n/a | yes |\n| \u003ca name=\"input_private_key_path\"\u003e\u003c/a\u003e [private\\_key\\_path](#input\\_private\\_key\\_path) | Private Key Absolute path location where terraform is executed | `any` | n/a | yes |\n| \u003ca name=\"input_private_network_subnet_name\"\u003e\u003c/a\u003e [private\\_network\\_subnet\\_name](#input\\_private\\_network\\_subnet\\_name) | Defines the subnet display name where this resource will be created at | `any` | n/a | yes |\n| \u003ca name=\"input_query_backup_policy_level\"\u003e\u003c/a\u003e [query\\_backup\\_policy\\_level](#input\\_query\\_backup\\_policy\\_level) | The backup policy of query server ISCSI disks | `any` | n/a | yes |\n| \u003ca name=\"input_query_disk_size_in_gb\"\u003e\u003c/a\u003e [query\\_disk\\_size\\_in\\_gb](#input\\_query\\_disk\\_size\\_in\\_gb) | The size of the attached disk to the query server instances, stores logging data | `any` | n/a | yes |\n| \u003ca name=\"input_query_disk_vpus_per_gb\"\u003e\u003c/a\u003e [query\\_disk\\_vpus\\_per\\_gb](#input\\_query\\_disk\\_vpus\\_per\\_gb) | The VPUS of the attached disk to the query server instances | `any` | n/a | yes |\n| \u003ca name=\"input_query_server_ad_list\"\u003e\u003c/a\u003e [query\\_server\\_ad\\_list](#input\\_query\\_server\\_ad\\_list) | The availability domains to provision the query server instances in | `any` | n/a | yes |\n| \u003ca name=\"input_query_server_count\"\u003e\u003c/a\u003e [query\\_server\\_count](#input\\_query\\_server\\_count) | The number of query server instances to provision | `any` | n/a | yes |\n| \u003ca name=\"input_query_server_fd_list\"\u003e\u003c/a\u003e [query\\_server\\_fd\\_list](#input\\_query\\_server\\_fd\\_list) | The fault domains to provision the query server instances in | `any` | n/a | yes |\n| \u003ca name=\"input_query_server_is_flex_shape\"\u003e\u003c/a\u003e [query\\_server\\_is\\_flex\\_shape](#input\\_query\\_server\\_is\\_flex\\_shape) | Boolean to determine if the query server instances are flex or not | `bool` | `false` | no |\n| \u003ca name=\"input_query_server_memory_in_gb\"\u003e\u003c/a\u003e [query\\_server\\_memory\\_in\\_gb](#input\\_query\\_server\\_memory\\_in\\_gb) | The amount of memory in GB for the query server instances to use when flex shape is enabled | `string` | `\"\"` | no |\n| \u003ca name=\"input_query_server_name\"\u003e\u003c/a\u003e [query\\_server\\_name](#input\\_query\\_server\\_name) | The name given to the query server instances instance | `any` | n/a | yes |\n| \u003ca name=\"input_query_server_ocpus\"\u003e\u003c/a\u003e [query\\_server\\_ocpus](#input\\_query\\_server\\_ocpus) | The number of OCPUS for the query server instances to use when flex shape is enabled | `string` | `\"\"` | no |\n| \u003ca name=\"input_query_server_shape\"\u003e\u003c/a\u003e [query\\_server\\_shape](#input\\_query\\_server\\_shape) | The shape for the query server instances to use | `any` | n/a | yes |\n| \u003ca name=\"input_region\"\u003e\u003c/a\u003e [region](#input\\_region) | Target region where artifacts are going to be created | `any` | n/a | yes |\n| \u003ca name=\"input_shard_replica_set_ad_list\"\u003e\u003c/a\u003e [shard\\_replica\\_set\\_ad\\_list](#input\\_shard\\_replica\\_set\\_ad\\_list) | The availability domains to provision the shard server instances in | `any` | n/a | yes |\n| \u003ca name=\"input_shard_replica_set_count\"\u003e\u003c/a\u003e [shard\\_replica\\_set\\_count](#input\\_shard\\_replica\\_set\\_count) | The number of shard server instances to provision | `any` | n/a | yes |\n| \u003ca name=\"input_shard_replica_set_fd_list\"\u003e\u003c/a\u003e [shard\\_replica\\_set\\_fd\\_list](#input\\_shard\\_replica\\_set\\_fd\\_list) | The fault domains to provision the shard server instances in | `any` | n/a | yes |\n| \u003ca name=\"input_shard_replica_set_is_flex_shape\"\u003e\u003c/a\u003e [shard\\_replica\\_set\\_is\\_flex\\_shape](#input\\_shard\\_replica\\_set\\_is\\_flex\\_shape) | Boolean to determine if the shard server instances are flex or not | `bool` | `false` | no |\n| \u003ca name=\"input_shard_replica_set_memory_in_gb\"\u003e\u003c/a\u003e [shard\\_replica\\_set\\_memory\\_in\\_gb](#input\\_shard\\_replica\\_set\\_memory\\_in\\_gb) | The amount of memory in GB for the shard server instances to use when flex shape is enabled | `string` | `\"\"` | no |\n| \u003ca name=\"input_shard_replica_set_name\"\u003e\u003c/a\u003e [shard\\_replica\\_set\\_name](#input\\_shard\\_replica\\_set\\_name) | The name given to the shard server instances | `any` | n/a | yes |\n| \u003ca name=\"input_shard_replica_set_ocpus\"\u003e\u003c/a\u003e [shard\\_replica\\_set\\_ocpus](#input\\_shard\\_replica\\_set\\_ocpus) | The number of OCPUS for the shard server instances to use when flex shape is enabled | `string` | `\"\"` | no |\n| \u003ca name=\"input_shard_replica_set_shape\"\u003e\u003c/a\u003e [shard\\_replica\\_set\\_shape](#input\\_shard\\_replica\\_set\\_shape) | The shape for the shard server instances to use | `any` | n/a | yes |\n| \u003ca name=\"input_ssh_private_key\"\u003e\u003c/a\u003e [ssh\\_private\\_key](#input\\_ssh\\_private\\_key) | Defines SSH Private Key to be used in order to remotely connect to compute instances | `any` | n/a | yes |\n| \u003ca name=\"input_ssh_public_key\"\u003e\u003c/a\u003e [ssh\\_public\\_key](#input\\_ssh\\_public\\_key) | Defines SSH Public Key to be used in order to remotely connect to compute instances | `any` | n/a | yes |\n| \u003ca name=\"input_tenancy_ocid\"\u003e\u003c/a\u003e [tenancy\\_ocid](#input\\_tenancy\\_ocid) | OCID of tenancy | `any` | n/a | yes |\n| \u003ca name=\"input_user_ocid\"\u003e\u003c/a\u003e [user\\_ocid](#input\\_user\\_ocid) | User OCID in tenancy. Currently hardcoded to user denny.alquinta@oracle.com | `any` | n/a | yes |\n| \u003ca name=\"input_vcn_display_name\"\u003e\u003c/a\u003e [vcn\\_display\\_name](#input\\_vcn\\_display\\_name) | VCN Display name to execute lookup | `any` | n/a | yes |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| \u003ca name=\"output_mongodb_config_servers\"\u003e\u003c/a\u003e [mongodb\\_config\\_servers](#output\\_mongodb\\_config\\_servers) | MongoDB Config Server Instances |\n| \u003ca name=\"output_mongodb_query_servers\"\u003e\u003c/a\u003e [mongodb\\_query\\_servers](#output\\_mongodb\\_query\\_servers) | MongoDB Query Server Instances |\n| \u003ca name=\"output_mongodb_shard_servers\"\u003e\u003c/a\u003e [mongodb\\_shard\\_servers](#output\\_mongodb\\_shard\\_servers) | MongoDB Shard Server Instances |\n\n## Contributing\nThis project is open source.  Please submit your contributions by forking this repository and submitting a pull request!  Oracle appreciates any contributions that are made by the open source community.\n\n## License\nCopyright (c) 2024 Oracle and/or its affiliates.\n\nLicensed under the Universal Permissive License (UPL), Version 1.0.\n\nSee [LICENSE](LICENSE.txt) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle-devrel%2Fterraform-oci-cloudbricks-mongodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foracle-devrel%2Fterraform-oci-cloudbricks-mongodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle-devrel%2Fterraform-oci-cloudbricks-mongodb/lists"}