Selector.infra/terraform/modules/web_service/main.tf

18 lines
559 B
Terraform
Raw Permalink Normal View History

resource "azurerm_service_plan" "selector" {
name = var.site_name
resource_group_name = var.resource_group_name
location = var.resource_group_location
os_type = "Linux"
sku_name = var.service_plan_sku
}
resource "azurerm_linux_web_app" "selector" {
name = var.site_name
resource_group_name = var.resource_group_name
location = azurerm_service_plan.selector.location
service_plan_id = azurerm_service_plan.selector.id
site_config {
always_on = false
}
}