-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstorageAccount.tf
25 lines (24 loc) · 1.26 KB
/
storageAccount.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
module "storage_account" {
source = "github.com/schubergphilis/terraform-azure-mcaf-storage-account.git?ref=v0.4.0"
name = var.storage_account.name
location = var.location
resource_group_name = var.resource_group_name
account_tier = var.storage_account.account_tier
account_replication_type = var.storage_account.account_replication_type
account_kind = "StorageV2"
access_tier = var.storage_account.access_tier
public_network_access_enabled = var.storage_account.public_network_access_enabled
https_traffic_only_enabled = true
infrastructure_encryption_enabled = var.storage_account.infrastructure_encryption_enabled
cmk_key_vault_id = var.storage_account.cmk_key_vault_id
cmk_key_name = var.storage_account.cmk_key_name
system_assigned_identity_enabled = var.storage_account.system_assigned_identity_enabled
user_assigned_identities = var.storage_account.user_assigned_identities
immutability_policy = var.storage_account.immutability_policy
tags = merge(
try(var.tags),
tomap({
"Resource Type" = "Storage Account"
})
)
}