This commit is contained in:
parent
052566269d
commit
efda5a688f
@ -33,5 +33,8 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- terraform init
|
- terraform init
|
||||||
- terraform validate
|
- 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 plan
|
||||||
- terraform apply -auto-approve
|
- terraform apply -auto-approve
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
resource "azurerm_cosmosdb_account" "cosmodb" {
|
resource "azurerm_cosmosdb_account" "cosmodb" {
|
||||||
name = "cosmosdbazurefunction"
|
name = "cosmosdbtorma"
|
||||||
location = azurerm_resource_group.rg-cosmostest-cosmosdb.location
|
location = azurerm_resource_group.rg-cosmostest-cosmosdb.location
|
||||||
resource_group_name = azurerm_resource_group.rg-cosmostest-cosmosdb.name
|
resource_group_name = azurerm_resource_group.rg-cosmostest-cosmosdb.name
|
||||||
offer_type = "Standard"
|
offer_type = "Standard"
|
||||||
|
@ -40,5 +40,9 @@ resource "azurerm_resource_group" "rg-cosmostest-staticwebapp" {
|
|||||||
|
|
||||||
resource "azurerm_resource_group" "rg-cosmostest-cosmosdb" {
|
resource "azurerm_resource_group" "rg-cosmostest-cosmosdb" {
|
||||||
name = "rg-cosmostest-cosmosdb"
|
name = "rg-cosmostest-cosmosdb"
|
||||||
location = "northeurope"
|
location = "westeurope"
|
||||||
|
}
|
||||||
|
resource "azurerm_resource_group" "rg-hanyadikhet-functionapp" {
|
||||||
|
name = "rg-hanyadikhet-functionapp"
|
||||||
|
location = "westeurope"
|
||||||
}
|
}
|
Reference in New Issue
Block a user