update import shit
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Torma Kristóf 2022-09-30 00:22:47 +02:00
parent 052566269d
commit efda5a688f
3 changed files with 9 additions and 2 deletions

View File

@ -33,5 +33,8 @@ steps:
commands:
- terraform init
- terraform validate
- terraform import "azurerm_resource_group.rg-cosmostest-cosmosdb" "/subscriptions/1f0aad73-a560-419a-a3a1-e30d0dec98b3/resourceGroups/rg-cosmostest-cosmosdb"
- terraform import "azurerm_resource_group.rg-hanyadikhet-functionapp" "/subscriptions/1f0aad73-a560-419a-a3a1-e30d0dec98b3/resourceGroups/rg-hanyadikhet-functionapp"
- terraform import "azurerm_cosmosdb_account.cosmodb" "/subscriptions/1f0aad73-a560-419a-a3a1-e30d0dec98b3/resourceGroups/rg-cosmostest-cosmosdb/providers/Microsoft.DocumentDB/databaseAccounts/cosmosdbtorma"
- terraform plan
- terraform apply -auto-approve

View File

@ -1,5 +1,5 @@
resource "azurerm_cosmosdb_account" "cosmodb" {
name = "cosmosdbazurefunction"
name = "cosmosdbtorma"
location = azurerm_resource_group.rg-cosmostest-cosmosdb.location
resource_group_name = azurerm_resource_group.rg-cosmostest-cosmosdb.name
offer_type = "Standard"

View File

@ -40,5 +40,9 @@ resource "azurerm_resource_group" "rg-cosmostest-staticwebapp" {
resource "azurerm_resource_group" "rg-cosmostest-cosmosdb" {
name = "rg-cosmostest-cosmosdb"
location = "northeurope"
location = "westeurope"
}
resource "azurerm_resource_group" "rg-hanyadikhet-functionapp" {
name = "rg-hanyadikhet-functionapp"
location = "westeurope"
}