This repository has been archived on 2023-12-13. You can view files and clone it, but cannot push or open issues or pull requests.
cloud-resources/azure-cosmosdb.tf

19 lines
606 B
Terraform
Raw Normal View History

2022-08-01 22:09:46 +02:00
resource "azurerm_cosmosdb_account" "cosmodb" {
name = "cosmosdb"
location = azurerm_resource_group.rg-cosmostest-staticwebapp-cosmosdb.location
2022-08-01 22:12:00 +02:00
resource_group_name = azurerm_resource_group.rg-cosmostest-staticwebapp-cosmosdb.name
2022-08-01 22:09:46 +02:00
offer_type = "Standard"
kind = "GlobalDocumentDB"
enable_free_tier = true
consistency_policy {
consistency_level = "BoundedStaleness"
max_interval_in_seconds = 300
max_staleness_prefix = 100000
}
geo_location {
location = azurerm_resource_group.rg-cosmostest-staticwebapp-cosmosdb.location
failover_priority = 0
}
}