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
/
storage_account.tf
91 lines (80 loc) · 3.76 KB
/
storage_account.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Storage Accounts
resource "azurerm_storage_account" "main" {
name = "${replace(var.prefix, "-", "")}files"
location = "${azurerm_resource_group.main.location}"
resource_group_name = "${azurerm_resource_group.main.name}"
account_tier = "Standard"
account_replication_type = "LRS"
}
resource "azurerm_storage_container" "drupal_settings" {
name = "drupal-settings"
resource_group_name = "${azurerm_resource_group.main.name}"
storage_account_name = "${azurerm_storage_account.main.name}"
container_access_type = "private"
}
resource "azurerm_storage_container" "public_files" {
name = "files-public"
resource_group_name = "${azurerm_resource_group.main.name}"
storage_account_name = "${azurerm_storage_account.main.name}"
container_access_type = "private"
}
resource "azurerm_storage_container" "private_files" {
name = "files-private"
resource_group_name = "${azurerm_resource_group.main.name}"
storage_account_name = "${azurerm_storage_account.main.name}"
container_access_type = "private"
}
resource "azurerm_storage_container" "nginx_config" {
name = "config-nginx"
resource_group_name = "${azurerm_resource_group.main.name}"
storage_account_name = "${azurerm_storage_account.main.name}"
container_access_type = "private"
}
resource "azurerm_storage_blob" "nginx_nginx_conf" {
name = "nginx.conf"
resource_group_name = "${azurerm_resource_group.main.name}"
storage_account_name = "${azurerm_storage_account.main.name}"
storage_container_name = "${azurerm_storage_container.nginx_config.name}"
type = "block"
source = "config/nginx/nginx.conf"
}
resource "azurerm_storage_blob" "nginx_mime_types" {
name = "mime.types"
resource_group_name = "${azurerm_resource_group.main.name}"
storage_account_name = "${azurerm_storage_account.main.name}"
storage_container_name = "${azurerm_storage_container.nginx_config.name}"
type = "block"
source = "config/nginx/mime.types"
}
resource "azurerm_storage_blob" "nginx_fastcgi_params" {
name = "fastcgi_params"
resource_group_name = "${azurerm_resource_group.main.name}"
storage_account_name = "${azurerm_storage_account.main.name}"
storage_container_name = "${azurerm_storage_container.nginx_config.name}"
type = "block"
source = "config/nginx/fastcgi_params"
}
resource "azurerm_storage_blob" "drupal_default_services_yml" {
name = "default.services.yml"
resource_group_name = "${azurerm_resource_group.main.name}"
storage_account_name = "${azurerm_storage_account.main.name}"
storage_container_name = "${azurerm_storage_container.drupal_settings.name}"
type = "block"
source = "config/drupal/default.services.yml"
}
resource "azurerm_storage_blob" "drupal_default_settings_php" {
name = "default.settings.php"
resource_group_name = "${azurerm_resource_group.main.name}"
storage_account_name = "${azurerm_storage_account.main.name}"
storage_container_name = "${azurerm_storage_container.drupal_settings.name}"
type = "block"
source = "config/drupal/default.settings.php"
}
resource "azurerm_storage_blob" "drupal_settings_php" {
name = "settings.php"
resource_group_name = "${azurerm_resource_group.main.name}"
storage_account_name = "${azurerm_storage_account.main.name}"
storage_container_name = "${azurerm_storage_container.drupal_settings.name}"
type = "block"
source = "config/drupal/settings.php"
}