forked from bridgecrewio/terragoat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
storage.tf
69 lines (66 loc) · 2.34 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
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
resource "azurerm_managed_disk" "example" {
name = "terragoat-disk-${var.environment}"
location = var.location
resource_group_name = azurerm_resource_group.example.name
storage_account_type = "Standard_LRS"
create_option = "Empty"
disk_size_gb = 1
encryption_settings {
enabled = false
}
tags = {
git_commit = "d68d2897add9bc2203a5ed0632a5cdd8ff8cefb0"
git_file = "terraform/azure/storage.tf"
git_last_modified_at = "2020-06-16 14:46:24"
git_last_modified_by = "nimrodkor@gmail.com"
git_modifiers = "nimrodkor"
git_org = "bridgecrewio"
git_repo = "terragoat"
yor_trace = "d17da7b3-f1c5-4723-9f77-d1b9069459c7"
}
}
resource "azurerm_storage_account" "example" {
name = "tgsa${var.environment}${random_integer.rnd_int.result}"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_resource_group.example.location
account_tier = "Standard"
account_replication_type = "GRS"
queue_properties {
logging {
delete = false
read = false
write = true
version = "1.0"
retention_policy_days = 10
}
hour_metrics {
enabled = true
include_apis = true
version = "1.0"
retention_policy_days = 10
}
minute_metrics {
enabled = true
include_apis = true
version = "1.0"
retention_policy_days = 10
}
}
tags = {
git_commit = "5c6b5d60a8aa63a5d37e60f15185d13a967f0542"
git_file = "terraform/azure/storage.tf"
git_last_modified_at = "2021-05-02 10:06:10"
git_last_modified_by = "nimrodkor@users.noreply.github.com"
git_modifiers = "Adin.Ermie/nimrodkor"
git_org = "bridgecrewio"
git_repo = "terragoat"
yor_trace = "23861ff4-c42d-495e-80ac-776c74035f43"
}
}
resource "azurerm_storage_account_network_rules" "test" {
resource_group_name = azurerm_resource_group.example.name
storage_account_name = azurerm_storage_account.example.name
default_action = "Deny"
ip_rules = ["127.0.0.1"]
bypass = ["Metrics"]
}