-
Notifications
You must be signed in to change notification settings - Fork 22
/
fileshare.tf
38 lines (30 loc) · 1.19 KB
/
fileshare.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
resource "azurerm_storage_account" "acafileshare" {
name = "${var.storage-account}${random_id.rg_name.hex}"
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
account_tier = "Standard"
account_replication_type = "LRS"
}
resource "azurerm_storage_container" "dfy"{
name = var.storage-account-container
storage_account_name = azurerm_storage_account.acafileshare.name
container_access_type = "private"
}
module "nginx_fileshare" {
source = "./fileshare_module"
storage_account_name = azurerm_storage_account.acafileshare.name
local_mount_dir = "mountfiles/nginx"
share_name = "nginx"
}
module "sandbox_fileshare" {
source = "./fileshare_module"
storage_account_name = azurerm_storage_account.acafileshare.name
local_mount_dir = "mountfiles/sandbox"
share_name = "sandbox"
}
module "ssrf_proxy_fileshare" {
source = "./fileshare_module"
storage_account_name = azurerm_storage_account.acafileshare.name
local_mount_dir = "mountfiles/ssrfproxy"
share_name = "ssrfproxy"
}