-
Notifications
You must be signed in to change notification settings - Fork 8
/
storage.tf
33 lines (28 loc) · 1.12 KB
/
storage.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_storage_account" "deployment" {
name = random_pet.deployment.id
location = azurerm_resource_group.deployment.location
resource_group_name = azurerm_resource_group.deployment.name
account_tier = "Standard"
account_replication_type = "LRS"
tags = local.default_tags
}
resource "azurerm_storage_share" "locust" {
name = "locust"
storage_account_name = azurerm_storage_account.deployment.name
quota = 50
}
resource "azurerm_storage_share_directory" "locust-logs" {
name = "logs"
share_name = azurerm_storage_share.locust.name
storage_account_name = azurerm_storage_account.deployment.name
}
resource "azurerm_storage_share_directory" "locust-stats" {
name = "stats"
share_name = azurerm_storage_share.locust.name
storage_account_name = azurerm_storage_account.deployment.name
}
resource "azurerm_storage_share_file" "locustfile" {
name = "locustfile.py"
storage_share_id = azurerm_storage_share.locust.id
source = "../locustfile.py"
}