-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweb-app.tf
More file actions
69 lines (46 loc) · 1.77 KB
/
Copy pathweb-app.tf
File metadata and controls
69 lines (46 loc) · 1.77 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
## Reasoning for using version 3 of app service environment:
# There are no networking dependencies on the customer's virtual network.
# You can secure all inbound and outbound traffic and route outbound traffic as you want.
# App service environment name MUST be unique globally
resource "azurerm_app_service_environment_v3" "app_env1" {
name = "AppEnvironment55566566"
resource_group_name = azurerm_resource_group.rg.name
subnet_id = azurerm_subnet.subnet1.id
internal_load_balancing_mode = "Web, Publishing"
cluster_setting {
name = "DisableTls1.0"
value = "1"
}
cluster_setting {
name = "InternalEncryption"
value = "true"
}
cluster_setting {
name = "FrontEndSSLCipherSuiteOrder"
value = "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"
}
}
#change region to India South, UK South, Australia, US Central for service plan to work
resource "azurerm_service_plan" "service_plan" {
name = "Service_plan6666686"
resource_group_name = azurerm_resource_group.rg.name
location = var.location
per_site_scaling_enabled = true
app_service_environment_id = azurerm_app_service_environment_v3.app_env1.id
sku_name = "I3v2"
os_type = "Linux"
}
resource "azurerm_linux_web_app" "Linux_web_app" {
name = "Linux-web-app"
location = var.location
resource_group_name = azurerm_resource_group.rg.name
service_plan_id = azurerm_service_plan.service_plan.id
site_config {
application_stack {
// docker_image_name = "docker/welcome-to-docker"
// docker_registry_url = azurerm_container_group.Container_group.container[0].image
docker_registry_url = "https://hub.docker.com/r/docker/welcome-to-docker"
docker_image_name = "welcome-to-docker"
}
}
}