add cosmos memes
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Torma Kristóf 2022-08-01 22:09:46 +02:00
parent 1eb6c33572
commit 6d631b1140
3 changed files with 36 additions and 0 deletions

19
azure-cosmosdb.tf Normal file
View 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
}
}

View File

@ -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"
}

View File

@ -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"
}