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/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. 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."