diff --git a/cosmosdb_account/main.tf b/cosmosdb_account/main.tf index ff5445b8..49cd954f 100644 --- a/cosmosdb_account/main.tf +++ b/cosmosdb_account/main.tf @@ -4,9 +4,10 @@ resource "azurerm_cosmosdb_account" "this" { resource_group_name = var.resource_group_name offer_type = var.offer_type kind = var.kind - enable_free_tier = var.enable_free_tier - enable_automatic_failover = var.enable_automatic_failover + free_tier_enabled = var.enable_free_tier + automatic_failover_enabled = var.enable_automatic_failover key_vault_key_id = var.key_vault_key_id + burst_capacity_enabled = var.burst_capacity_enabled mongo_server_version = var.mongo_server_version diff --git a/cosmosdb_account/variables.tf b/cosmosdb_account/variables.tf index baddbdcb..5684c07c 100644 --- a/cosmosdb_account/variables.tf +++ b/cosmosdb_account/variables.tf @@ -44,6 +44,12 @@ variable "enable_automatic_failover" { description = "Enable automatic fail over for this Cosmos DB account." } +variable "burst_capacity_enabled" { + type = bool + default = true + description = "Enable burst capacity for this Cosmos DB account. Defaults to false." +} + variable "key_vault_key_id" { type = string description = "(Optional) A versionless Key Vault Key ID for CMK encryption. Changing this forces a new resource to be created. When referencing an azurerm_key_vault_key resource, use versionless_id instead of id" diff --git a/cosmosdb_account/versions.tf b/cosmosdb_account/versions.tf index 4fb369b2..d95dbd82 100644 --- a/cosmosdb_account/versions.tf +++ b/cosmosdb_account/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { azurerm = { source = "hashicorp/azurerm" - version = "~>3.30" + version = "~>3.116" } } }