forked from metalstormbass/Shiftleft_AzureDevOps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp_service.tf
More file actions
25 lines (23 loc) · 842 Bytes
/
app_service.tf
File metadata and controls
25 lines (23 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#Create App Service Plan
resource "azurerm_app_service_plan" "vulnerablewebapp_serviceplan" {
name = "${var.victim_company}-app"
location = azurerm_resource_group.victim-network-rg.location
resource_group_name = azurerm_resource_group.victim-network-rg.name
kind = "Linux"
reserved = true
sku {
tier = "Standard"
size = "S1"
}
}
#Create App Service
resource "azurerm_app_service" "vulnerablewebapp_appservice" {
name = "${var.victim_company}-app-service"
location = azurerm_resource_group.victim-network-rg.location
resource_group_name = azurerm_resource_group.victim-network-rg.name
app_service_plan_id = azurerm_app_service_plan.vulnerablewebapp_serviceplan.id
site_config {
linux_fx_version = "PYTHON|3.7"
use_32_bit_worker_process = false
}
}