This commit is contained in:
parent
1eb6c33572
commit
6d631b1140
19
azure-cosmosdb.tf
Normal file
19
azure-cosmosdb.tf
Normal file
@ -0,0 +1,19 @@
|
||||
resource "azurerm_cosmosdb_account" "cosmodb" {
|
||||
name = "cosmosdb"
|
||||
location = azurerm_resource_group.rg-cosmostest-staticwebapp-cosmosdb.location
|
||||
resource_group_name = azurerm_resource_group.rg-cosmostest-staticwebapp.name
|
||||
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
|
||||
}
|
||||
}
|
@ -32,3 +32,8 @@ resource "azurerm_resource_group" "rg-hhv-staticwebapp" {
|
||||
name = "rg-hhv-staticwebapp"
|
||||
location = "westeurope"
|
||||
}
|
||||
|
||||
resource "azurerm_resource_group" "rg-cosmostest-staticwebapp-cosmosdb" {
|
||||
name = "rg-cosmostest-staticwebapp-cosmosdb"
|
||||
location = "westeurope"
|
||||
}
|
||||
|
@ -69,3 +69,15 @@ resource "azurerm_static_site_custom_domain" "hhvtormakristofeu" {
|
||||
domain_name = "hhv.tormakristof.eu"
|
||||
validation_type = "cname-delegation"
|
||||
}
|
||||
|
||||
resource "azurerm_static_site" "cosmostest" {
|
||||
name = "cosmostest"
|
||||
resource_group_name = azurerm_resource_group.rg-cosmostest-staticwebapp.name
|
||||
location = azurerm_resource_group.rg-cosmostest-staticwebapp-cosmosdb.location
|
||||
}
|
||||
|
||||
resource "azurerm_static_site_custom_domain" "cosmostesttormakristofeu" {
|
||||
static_site_id = azurerm_static_site.cosmostest.id
|
||||
domain_name = "cosmostest.tormakristof.eu"
|
||||
validation_type = "cname-delegation"
|
||||
}
|
Reference in New Issue
Block a user