From 703cbe9e875f19aa7db5e48a44d9b67d67713b26 Mon Sep 17 00:00:00 2001 From: Maciej Murawski Date: Wed, 22 Oct 2025 13:25:25 +0100 Subject: [PATCH 1/2] feat: add blob access tier setting to the storage account module --- infrastructure/modules/storage/main.tf | 1 + infrastructure/modules/storage/variables.tf | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/infrastructure/modules/storage/main.tf b/infrastructure/modules/storage/main.tf index 209f06ac..6dace3e0 100644 --- a/infrastructure/modules/storage/main.tf +++ b/infrastructure/modules/storage/main.tf @@ -7,6 +7,7 @@ resource "azurerm_storage_account" "storage_account" { account_replication_type = var.account_replication_type account_tier = var.account_tier public_network_access_enabled = var.public_network_access_enabled + access_tier = var.access_tier tags = var.tags diff --git a/infrastructure/modules/storage/variables.tf b/infrastructure/modules/storage/variables.tf index 7a58f74d..e6464430 100644 --- a/infrastructure/modules/storage/variables.tf +++ b/infrastructure/modules/storage/variables.tf @@ -35,6 +35,12 @@ variable "account_tier" { default = "Standard" } +variable "access_tier" { + type = string + description = "Defines the access tier for BlobStorage, FileStorage and StorageV2 accounts. Valid options are Hot, Cool, Cold and Premium." + default = "Hot" +} + variable "blob_properties_delete_retention_policy" { type = number description = "The value set for blob properties delete retention policy." From 5b00fa35dd60545573fc94fad634b8388de66b53 Mon Sep 17 00:00:00 2001 From: Maciej Murawski Date: Thu, 27 Nov 2025 10:57:44 +0000 Subject: [PATCH 2/2] chore: add the new variable to tfdocs.md --- infrastructure/modules/storage/tfdocs.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/infrastructure/modules/storage/tfdocs.md b/infrastructure/modules/storage/tfdocs.md index fb75011a..58ccd71d 100644 --- a/infrastructure/modules/storage/tfdocs.md +++ b/infrastructure/modules/storage/tfdocs.md @@ -97,6 +97,14 @@ Type: `string` Default: `"Standard"` +### [access\_tier](#input\_access\_tier) + +Description: Defines the access tier for BlobStorage, FileStorage and StorageV2 accounts. Valid options are Hot, Cool, Cold and Premium. Defaults to Hot. + +Type: `string` + +Default: `"Hot"` + ### [action\_group\_id](#input\_action\_group\_id) Description: ID of the action group to notify.