Skip to content

Commit dbc870c

Browse files
author
Admin
committed
Add support to analytics storage for cosmos db account
1 parent 06a4f9c commit dbc870c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

modules/azurerm/Cosmos-Database-Account/cosmos_database_account.tf

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ resource "azurerm_cosmosdb_account" "cosmos_db_account" {
2121
enable_multiple_write_locations = var.enable_multiple_write_locations
2222
enable_automatic_failover = length(local.geo_locations) == 1 ? false : var.enable_automatic_failover
2323
is_virtual_network_filter_enabled = var.is_virtual_network_filter_enabled
24+
analytical_storage_enabled = var.analytical_storage_enabled
2425

2526
dynamic "geo_location" {
2627
for_each = local.geo_locations

modules/azurerm/Cosmos-Database-Account/variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,9 @@ variable "backup_storage_redundancy" {
136136
description = "The backup storage redundancy for the Cosmos DB account."
137137
type = string
138138
}
139+
140+
variable "analytical_storage_enabled" {
141+
default = false
142+
description = "Enable Analytical Storage option for the Cosmos DB account"
143+
type = bool
144+
}

0 commit comments

Comments
 (0)