storage-account

claranet/storage-account/azurerm

Terraform Module HCL AZURERM

Terraform module for Azure Storage

Install
module "storage-account" {
source = "claranet/storage-account/azurerm"
version = "8.6.9"
}
⭐ Source on GitHub 📦 Registry page
README

Azure Storage Account ![Changelog](CHANGELOG.md) ![Notice](NOTICE) ![Apache V2 License](LICENSE) ![OpenTofu Registry](https://search.opentofu.org/module/claranet/storage-account/azurerm/) Common Azure terraform module to create a Storage Account and manage related parameters (Threat protection, Network Rules, Blob Containers, File Shares, etc.) Azure File share authentication If you need to enable Active Directory or AAD DS authentication for Azure File on this Storage Account, please read the Microsoft documentation and set the required values in the file_share_authentication variable. Global versioning rule for Claranet Azure modules | Module version | Terraform version | OpenTofu version | AzureRM version | | -------------- | ----------------- | ---------------- | --------------- | | >=

Inputs (50)
NameTypeDescriptionDefault
logs_destinations_idslist(string)List of destination resources IDs for logs diagnostic destination. Can be `Stora required
environmentstringProject environment. required
client_namestringClient name/account used in naming. required
file_share_properties_smbobject({ versions Storage Account file shares smb properties.null
public_network_access_enabledboolWhether the public network access is enabled.true
logs_categorieslist(string)Log categories to send to destinations.null
shared_access_key_enabledboolIndicates whether the Storage Account permits requests to be authorized with thefalse
nfsv3_enabledboolIs NFSv3 protocol enabled? Changing this forces a new resource to be created.false
tableslist(object({ name = strinList of objects to create some Tables in this Storage Account.[]
file_shareslist(object({ name List of objects to create some File Shares in this Storage Account.[]
rbac_storage_file_role_principal_idsobject({ privileged_contriThe principal IDs of the users, groups, and service principals to assign the `St{}
account_tierstringDefines the Tier to use for this Storage Account. Valid options are `Standard` a"Standard"
diagnostic_settings_custom_namestringCustom name of the diagnostics settings, name will be `default` if not set."default"
rbac_storage_blob_role_principal_idsobject({ owners = opThe principal IDs of the users, groups, and service principals to assign the `St{}
https_traffic_only_enabledboolBoolean flag which forces HTTPS if enabled.true
hns_enabledboolIs Hierarchical Namespace enabled? This can be used with Azure Data Lake Storagefalse
file_share_retention_policy_in_daysnumberStorage Account file shares retention policy in days. Enabling this may require null
identity_idslist(string)Specifies a list of User Assigned Managed Identity IDs to be assigned to this Stnull
customer_managed_keyobject({ key_vault_key_id Customer Managed Key. Please refer to the [documentation](https://registry.terranull
storage_defender_override_subscription_settingsobject({ malware_scanning_Override the Defender for Cloud Storage settings defined for the subscription. Pnull
queueslist(object({ name = sList of objects to create some Queues in this Storage Account.[]
rbac_storage_queue_contributor_role_principal_idsobject({ contributors = opThe principal IDs of the users, groups, and service principals to assign the `St{}
infrastructure_encryption_enabledboolBoolean flag which enables infrastructure encryption. Please refer to the [docufalse
… and 10 more inputs
Outputs (9)
resource — Storage Account resource object.
id — Storage Account ID.
name — Storage Account name.
identity_principal_id — Storage Account system identity principal ID.
module_diagnostics — Diagnostics settings module outputs.
resource_file_shares — Created file shares in the Storage Account.
resource_tables — Created tables in the Storage Account.
resource_queues — Created queues in the Storage Account.
resource_blob_containers — Created blob containers in the Storage Account.
Resources (10)
azurerm_advanced_threat_protectionazurerm_role_assignmentazurerm_security_center_storage_defenderazurerm_storage_accountazurerm_storage_account_network_rulesazurerm_storage_account_queue_propertiesazurerm_storage_containerazurerm_storage_queueazurerm_storage_shareazurerm_storage_table
Details
FrameworkTerraform Module
LanguageHCL
Version8.6.9
Cloud AZURERM
★ Stars14
Forks16
Total downloads441.3k
Inputs50
Outputs9
Resources10
Examples3
LicenseApache-2.0
Namespaceclaranet
Updated