From ccded319310d4481cb00132ad16ef189bc307792 Mon Sep 17 00:00:00 2001 From: yohanhounsounou <81562411+yohanhounsounou@users.noreply.github.com> Date: Tue, 22 Mar 2022 12:43:33 +0100 Subject: [PATCH] add support of last_access_time_enabled parameter (#4) * add last_access_time_enabled parameter * fix typo --- storage.tf | 3 +++ variables.tf | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/storage.tf b/storage.tf index 76b6a03..72c78d1 100644 --- a/storage.tf +++ b/storage.tf @@ -24,6 +24,9 @@ resource "azurerm_storage_account" "quortex" { account_tier = var.storage_tier account_replication_type = var.storage_replication_type account_kind = var.storage_kind + blob_properties { + last_access_time_enabled = var.last_access_time_enabled + } tags = var.tags } diff --git a/variables.tf b/variables.tf index 80c1892..621fd3e 100644 --- a/variables.tf +++ b/variables.tf @@ -55,7 +55,13 @@ variable "storage_replication_type" { } variable "tags" { - type = map + type = map(any) description = "Tags to apply to resources. A list of key->value pairs." default = {} } + +variable "last_access_time_enabled" { + type = bool + description = "Is the last access time based tracking enabled?" + default = false +} \ No newline at end of file