separate rg
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Torma Kristóf 2022-08-01 22:56:22 +02:00
parent a5964fb197
commit 2682551234
3 changed files with 10 additions and 5 deletions

View File

@ -1,7 +1,7 @@
resource "azurerm_cosmosdb_account" "cosmodb" { resource "azurerm_cosmosdb_account" "cosmodb" {
name = "cosmosdbazurefunction" name = "cosmosdbazurefunction"
location = "eastus" location = azurerm_resource_group.rg-cosmostest-cosmosdb.location
resource_group_name = azurerm_resource_group.rg-cosmostest-staticwebapp-cosmosdb.name resource_group_name = azurerm_resource_group.rg-cosmostest-cosmosdb.name
offer_type = "Standard" offer_type = "Standard"
kind = "GlobalDocumentDB" kind = "GlobalDocumentDB"
enable_free_tier = true enable_free_tier = true

View File

@ -33,7 +33,12 @@ resource "azurerm_resource_group" "rg-hhv-staticwebapp" {
location = "westeurope" location = "westeurope"
} }
resource "azurerm_resource_group" "rg-cosmostest-staticwebapp-cosmosdb" { resource "azurerm_resource_group" "rg-cosmostest-staticwebapp" {
name = "rg-cosmostest-staticwebapp-cosmosdb" name = "rg-cosmostest-staticwebapp-cosmosdb"
location = "westeurope" location = "westeurope"
} }
resource "azurerm_resource_group" "rg-cosmostest-cosmosdb" {
name = "rg-cosmostest-cosmosdb"
location = "westeurope"
}

View File

@ -72,8 +72,8 @@ resource "azurerm_static_site_custom_domain" "hhvtormakristofeu" {
resource "azurerm_static_site" "cosmostest" { resource "azurerm_static_site" "cosmostest" {
name = "cosmostest" name = "cosmostest"
resource_group_name = azurerm_resource_group.rg-cosmostest-staticwebapp-cosmosdb.name resource_group_name = azurerm_resource_group.rg-cosmostest-staticwebapp.name
location = azurerm_resource_group.rg-cosmostest-staticwebapp-cosmosdb.location location = azurerm_resource_group.rg-cosmostest-staticwebapp.location
} }
resource "azurerm_static_site_custom_domain" "cosmostesttormakristofeu" { resource "azurerm_static_site_custom_domain" "cosmostesttormakristofeu" {