Skip to content

Commit

Permalink
change chap05 refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelkrief committed Aug 23, 2023
1 parent 45a9746 commit 5f97380
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions CHAP05/refactor/cli/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,31 @@ resource "azurerm_resource_group" "rg" {
location = "westeurope"
}

resource "azurerm_service_plan" "plan" {
name = "Plan-AppRefactobook"

resource "azurerm_virtual_network" "vnet" {
name = "vnet1"
address_space = ["10.0.0.0/16"]
location = azurerm_resource_group.rg.location
resource_group_name = azurerm_resource_group.rg.name
sku_name = "S1"
os_type = "Linux"
}


resource "azurerm_linux_web_app" "app1" {
name = "MyAppRefactbook-10" #change name to be unique
location = azurerm_resource_group.rg.location
resource_group_name = azurerm_resource_group.rg.name
service_plan_id = azurerm_service_plan.plan.id
site_config {}
resource "azurerm_subnet" "snet1" {
name = "subnet1"
resource_group_name = azurerm_resource_group.rg.name
virtual_network_name = azurerm_virtual_network.vnet.name
address_prefixes = ["10.0.1.0/24"]
}

resource "azurerm_linux_web_app" "app2" {
name = "MyAppRefactbook-20" #change name to be unique
location = azurerm_resource_group.rg.location
resource_group_name = azurerm_resource_group.rg.name
service_plan_id = azurerm_service_plan.plan.id
site_config {}
resource "azurerm_subnet" "snet2" {
name = "subnet1"
resource_group_name = azurerm_resource_group.rg.name
virtual_network_name = azurerm_virtual_network.vnet.name
address_prefixes = ["10.0.2.0/24"]
}




# locals {
# webapp_list = ["MyAppRefactbook-10", "MyAppRefactbook-20"] #change 2 names to be unique
# }
Expand Down

0 comments on commit 5f97380

Please sign in to comment.