-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp_service.tf
33 lines (29 loc) · 1.03 KB
/
app_service.tf
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
26
27
28
29
30
31
32
33
resource azurerm_app_service_plan "example" {
name = "terragoat-app-service-plan-${var.environment}"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
sku {
tier = "Dynamic"
size = "S1"
}
}
resource azurerm_app_service "app-service1" {
app_service_plan_id = azurerm_app_service_plan.example.id
location = var.location
name = "terragoat-app-service-${var.environment}${random_integer.rnd_int.result}"
resource_group_name = azurerm_resource_group.example.name
https_only = false
site_config {
min_tls_version = "1.1"
}
}
resource azurerm_app_service "app-service2" {
app_service_plan_id = azurerm_app_service_plan.example.id
location = var.location
name = "terragoat-app-service-${var.environment}${random_integer.rnd_int.result}"
resource_group_name = azurerm_resource_group.example.name
https_only = true
auth_settings {
enabled = false
}
}