Skip to content

Commit

Permalink
feat: Updated cosmosdb account module version and parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
alessio-cialini committed Nov 20, 2024
1 parent 63f6181 commit b8129ac
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 3 additions & 2 deletions cosmosdb_account/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 6 additions & 0 deletions cosmosdb_account/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion cosmosdb_account/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~>3.30"
version = "~>3.116"
}
}
}

0 comments on commit b8129ac

Please sign in to comment.