-
Notifications
You must be signed in to change notification settings - Fork 28
/
db.tf
38 lines (33 loc) · 1.02 KB
/
db.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
resource "azurerm_cosmosdb_account" "librechat" {
name = "librechatdb${random_string.random_postfix.result}"
resource_group_name = azurerm_resource_group.this.name
location = azurerm_resource_group.this.location
offer_type = "Standard"
kind = "MongoDB"
enable_automatic_failover = false
enable_free_tier = var.use_cosmosdb_free_tier
consistency_policy {
consistency_level = "BoundedStaleness"
max_interval_in_seconds = 10
max_staleness_prefix = 200
}
geo_location {
location = azurerm_resource_group.this.location
failover_priority = 0
}
capabilities {
name = "MongoDBv3.4"
}
capabilities {
name = "EnableServerless"
}
capabilities {
name = "EnableMongo"
}
virtual_network_rule {
id = azurerm_subnet.librechat_subnet.id
}
# enable_multiple_write_locations = false
is_virtual_network_filter_enabled = true
public_network_access_enabled = true
}