cosmos-db

claranet/cosmos-db/azurerm

Terraform Module HCL AZURERM

Terraform module for CosmosDB account and databases

Install
module "cosmos-db" {
source = "claranet/cosmos-db/azurerm"
version = "8.2.2"
}
plain text: /constructs/tfmod-claranet-cosmos-db-azurerm/install.txt
⭐ Source on GitHub 📦 Registry page
README

Azure CosmosDB ![Changelog](CHANGELOG.md) ![Notice](NOTICE) ![Apache V2 License](LICENSE) ![OpenTofu Registry](https://search.opentofu.org/module/claranet/cosmos-db/azurerm/) This terraform module creates an Azure CosmosDB. Diagnostic settings are also deployed. Global versioning rule for Claranet Azure modules | Module version | Terraform version | OpenTofu version | AzureRM version | | -------------- | ----------------- | ---------------- | --------------- | | >= 8.x.x | Unverified | 1.8.x | >= 4.0 | | >= 7.x.x | 1.3.x | | >= 3.0 | | >= 6.x.x | 1.x | | >= 3.0 | | >= 5.x.x | 0.15.x | | >= 2.0 | | >= 4.x.x | 0.13.x / 0.14.x | | >= 2.0 | | >= 3.x.x | 0.12.x | | >= 2.0 | | >= 2.x.x | 0.12.x | | < 2.0 | | < 2.x.x | 0.11.x | | < 2.0 | Contributing If you want to contribute to this repository,

Inputs (38)
NameTypeDescriptionDefault
logs_destinations_idslist(string)List of destination resources IDs for logs diagnostic destination. Can be `Stora required
client_namestringClient name. required
stackstringStack name. required
environmentstringEnvironment name. required
resource_group_namestringResource Group the resources will belong to. required
locationstringAzure location for CosmosDB. required
location_shortstringShort string for Azure location. required
default_tags_enabledboolOption to enable or disable default tags.true
zone_redundancy_enabledboolTrue to enabled zone redundancy on default primary location.true
analytical_storage_enabledboolEnable Analytical Storage option for this Cosmos DB account. Defaults to `false`false
analytical_storage_typestringThe schema type of the Analytical Storage for this Cosmos DB account. Possible vnull
diagnostic_settings_custom_namestringCustom name of the diagnostics settings, name will be `default` if not set."default"
extra_tagsmap(string)Map of custom tags.{}
consistency_policy_max_interval_in_secondsnumberWhen used with the Bounded Staleness consistency level, this value represents th10
burst_capacity_enabledboolEnable burst capacity for this Cosmos DB account.false
network_acl_bypass_for_azure_services_enabledboolWhether to allow azure services to bypass ACLs.false
consistency_policy_levelstringConsistency policy level. Allowed values are `BoundedStaleness`, `Eventual`, `Se"BoundedStaleness"
network_acl_bypass_idslist(string)The list of resource Ids for Network Acl Bypass for this Cosmos DB account.null
consistency_policy_max_staleness_prefixnumberWhen used with the Bounded Staleness consistency level, this value represents th200
identity_idslist(string)User Assigned Identities IDs to add to this resource. Mandatory if `var.identitynull
logs_categorieslist(string)Log categories to send to destinations.null
offer_typestringSpecifies the Offer Type to use for this CosmosDB Account - currently this can o"Standard"
capabilitieslist(string)Configures the capabilities to enable for this Cosmos DB account: Possible value[]
allowed_cidrslist(string)CosmosDB Firewall Support: This value specifies the set of IP addresses or IP ad[]
virtual_network_rulelist(object({ id Specifies a `virtual_network_rules` resource used to define which subnets are alnull
logs_metrics_categorieslist(string)Metrics categories to send to destinations.null
name_suffixstringOptional suffix for the generated name.""
Outputs (12)
read_endpoints — A list of read endpoints available for this CosmosDB account.
write_endpoints — A list of write endpoints available for this CosmosDB account.
primary_master_key — The primary master key for the CosmosDB account.
primary_readonly_master_key — The primary read-only master key for the CosmosDB account.
secondary_readonly_master_key — The secondary read-only master key for the CosmosDB account.
module_diagnostics — Diagnostics settings module outputs.
name — The CosmosDB account name.
endpoint — The endpoint used to connect to the CosmosDB account.
secondary_master_key — The secondary master key for the CosmosDB account.
identity_principal_id — CosmosDB account system identity principal ID.
resource — CosmosDB resource object.
id — The CosmosDB account ID.
Resources (1)
azurerm_cosmosdb_account
Details
FrameworkTerraform Module
LanguageHCL
Version8.2.2
Cloud AZURERM
★ Stars4
Forks20
Total downloads33.9k
Inputs38
Outputs12
Resources1
Examples2
LicenseApache-2.0
Namespaceclaranet
Updated