Skip to content

Commit 4525e41

Browse files
committed
feat: add blob access tier setting to the storage account module
1 parent 791025f commit 4525e41

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

infrastructure/modules/storage/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ resource "azurerm_storage_account" "storage_account" {
77
account_replication_type = var.account_replication_type
88
account_tier = var.account_tier
99
public_network_access_enabled = var.public_network_access_enabled
10+
access_tier = var.access_tier
1011

1112
tags = var.tags
1213

infrastructure/modules/storage/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ variable "account_tier" {
3535
default = "Standard"
3636
}
3737

38+
variable "access_tier" {
39+
type = string
40+
description = "Defines the access tier for BlobStorage, FileStorage and StorageV2 accounts. Valid options are Hot, Cool, Cold and Premium."
41+
default = "Hot"
42+
}
43+
3844
variable "blob_properties_delete_retention_policy" {
3945
type = number
4046
description = "The value set for blob properties delete retention policy."

0 commit comments

Comments
 (0)