-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.tf
33 lines (30 loc) · 1.02 KB
/
main.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" "storage-account" {
name = "${lower(var.project)}${lower(var.stage)}stateacc"
resource_group_name = var.resource_group
location = var.location
account_kind = "StorageV2"
account_tier = "Standard"
account_replication_type = "ZRS"
https_traffic_only_enabled = true
min_tls_version = "TLS1_2"
tags = var.tags
queue_properties {
logging {
delete = true
read = true
write = true
version = "2.0"
retention_policy_days = 14
}
}
blob_properties {
delete_retention_policy {
days = var.delete_retention_policy
}
}
}
resource "azurerm_storage_container" "storage-container" {
name = "${lower(var.project)}${lower(var.stage)}statecont"
storage_account_name = azurerm_storage_account.storage-account.name
container_access_type = "private"
}