avm-res-documentdb-mongocluster

Azure/avm-res-documentdb-mongocluster/azurerm

Terraform Module HCL AZURERM ✓ Verified

Terraform Azure Verified Resource Module for Cosmos DB for MongoDB (vCore)

Install
module "avm-res-documentdb-mongocluster" {
source = "Azure/avm-res-documentdb-mongocluster/azurerm"
version = "0.1.0"
}
⭐ Source on GitHub 📦 Registry page
README

terraform-azurerm-avm-res-documentdb-mongocluster This module manages a MongoDB Cluster using vCore Architecture. Requirements The following requirements are needed by this module: - terraform (>= 1.9, azapi (~> 2.4) - azurerm (~> 4.0) - modtm (~> 0.3) - random (~> 3.5) Resources The following resources are used by this module: - azapi_resource.diagnostic_setting (resource) - azapi_resource.firewall_rule (resource) - azapi_resource.mongo_cluster (resource) - azurerm_management_lock.this (resource) - azurerm_private_endpoint.this_managed_dns_zone_groups (resource) - azurerm_private_endpoint.this_unmanaged_dns_zone_groups (resource) - azurerm_private_endpoint_application_security_group_association.this (resource) - azurerm_role_assignment.this (resource) - modtm_telemetry.telemetry (resource

Inputs (24)
NameTypeDescriptionDefault
administrator_login_passwordstringAdministrator login password (sensitive). Prefer injecting from a secure externa required
locationstringAzure region where the resource should be deployed. required
namestringThe name of the this resource. required
administrator_loginstringAdministrator (cluster) login name. Must start with a letter; allowed: letters, required
resource_group_namestringThe resource group where the resources will be deployed. required
compute_tierstringCompute tier (e.g., M30, M40, etc.)."M30"
diagnostic_settingsmap(object({ name A map of diagnostic settings to create on the Key Vault. The map key is delibera{}
firewall_ruleslist(object({ name = sList of firewall rules (public IP ranges) applied when public network access is []
managed_identitiesobject({ system_assigned Controls the Managed Identity configuration on this resource. The following prop{}
private_endpointsmap(object({ name = optionA map of private endpoints to create on this resource. The map key is deliberate{}
private_endpoints_manage_dns_zone_groupboolWhether to manage private DNS zone groups with this module. If set to false, youtrue
public_network_accessstringEnable or disable public network access: Enabled or Disabled."Disabled"
customer_managed_keyobject({ key_vault_resourcA map describing customer-managed keys to associate with the resource. This inclnull
lockobject({ kind = string Controls the Resource Lock configuration for this resource. The following propernull
node_countnumber(Deprecated) Previous preview node_count for nodeGroupSpecs. Ignored in 2024-07-null
storage_size_gbnumberCluster storage size in GB (service supported increments).32
backup_policy_typestringBackup policy type (e.g., Periodic, Continuous7Days, Continuous30Days)."Continuous7Days"
ha_modestringHigh availability target mode for the cluster: Disabled, SameZone, ZoneRedundant"Disabled"
server_versionstringMongoDB server version (e.g. 7.0)."7.0"
shard_countnumberNumber of shards (properties.sharding.shardCount).1
tagsmap(string)(Optional) Tags of the resource.null
enable_habool(Deprecated) Previous preview boolean for HA. If set and ha_mode not overridden,null
enable_telemetryboolThis variable controls whether or not telemetry is enabled for the module. For mtrue
role_assignmentsmap(object({ role_definitiA map of role assignments to create on this resource. The map key is deliberatel{}
Outputs (8)
mongo_cluster_name — Name of the MongoDB vCore cluster.
mongo_cluster_properties — Raw properties object returned by the AzAPI provider (may include status, sizing, endpoints). Subjec
private_endpoints — A map of the private endpoints created.
resource_id — The resource ID of the MongoDB vCore cluster (required by AVM).
mongo_cluster_connection_string — Primary Mongo connection string if exposed (preview shape). Null if not available yet.
mongo_cluster_connection_strings — Collection of connection strings if service returns multiple. Null if not available.
mongo_cluster_id — Resource ID of the MongoDB vCore cluster.
mongo_cluster_location — Location of the MongoDB vCore cluster.
Resources (7)
azapi_resourceazurerm_management_lockazurerm_private_endpointazurerm_private_endpoint_application_security_group_associationazurerm_role_assignmentmodtm_telemetryrandom_uuid
Details
FrameworkTerraform Module
LanguageHCL
Version0.1.0
Cloud AZURERM
★ Stars0
Forks3
Total downloads2.9k
Inputs24
Outputs8
Resources7
Examples2
LicenseMIT
NamespaceAzure
Updated