Skip to content

Commit cf15363

Browse files
authored
feat: [DTOSS-11124] Add an access_tier setting to storage_accounts module (#259)
* feat: add blob access tier setting to the storage account module * chore: add the new variable to tfdocs.md
1 parent ac6d79c commit cf15363

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-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/tfdocs.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ Type: `string`
9797

9898
Default: `"Standard"`
9999

100+
### <a name="input_access_tier"></a> [access\_tier](#input\_access\_tier)
101+
102+
Description: Defines the access tier for BlobStorage, FileStorage and StorageV2 accounts. Valid options are Hot, Cool, Cold and Premium. Defaults to Hot.
103+
104+
Type: `string`
105+
106+
Default: `"Hot"`
107+
100108
### <a name="input_action_group_id"></a> [action\_group\_id](#input\_action\_group\_id)
101109

102110
Description: ID of the action group to notify.

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)