This repository has been archived by the owner on Dec 30, 2021. It is now read-only.
forked from openplus/terraform-containers-webapp-azure
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appsvc.tf
62 lines (53 loc) · 1.95 KB
/
appsvc.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
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
# Azure App Service
resource "azurerm_app_service_plan" "main" {
name = "${var.prefix}-asp"
location = "${azurerm_resource_group.main.location}"
resource_group_name = "${azurerm_resource_group.main.name}"
kind = "Linux"
reserved = true
sku {
tier = "Standard"
size = "S3"
}
}
resource "azurerm_app_service" "main" {
name = "${var.prefix}-appservice"
location = "${azurerm_resource_group.main.location}"
resource_group_name = "${azurerm_resource_group.main.name}"
app_service_plan_id = "${azurerm_app_service_plan.main.id}"
site_config {
app_command_line = ""
linux_fx_version = "COMPOSE|${filebase64("config/docker-compose.yml")}"
}
app_settings = {
"WEBSITES_ENABLE_APP_SERVICE_STORAGE" = "false"
}
storage_account {
name = "drupal_settings"
type = "AzureBlob"
account_name = "${azurerm_storage_account.main.name}"
share_name = "${azurerm_storage_container.drupal_settings.name}"
access_key = "${azurerm_storage_account.main.primary_access_key}"
}
storage_account {
name = "files_public"
type = "AzureBlob"
account_name = "${azurerm_storage_account.main.name}"
share_name = "${azurerm_storage_container.public_files.name}"
access_key = "${azurerm_storage_account.main.primary_access_key}"
}
storage_account {
name = "files_private"
type = "AzureBlob"
account_name = "${azurerm_storage_account.main.name}"
share_name = "${azurerm_storage_container.private_files.name}"
access_key = "${azurerm_storage_account.main.primary_access_key}"
}
storage_account {
name = "config_nginx"
type = "AzureBlob"
account_name = "${azurerm_storage_account.main.name}"
share_name = "${azurerm_storage_container.nginx_config.name}"
access_key = "${azurerm_storage_account.main.primary_access_key}"
}
}