diff --git a/modules/azure/storage_account_public/main.tf b/modules/azure/storage_account_public/main.tf index f9ee346d..49f8480b 100644 --- a/modules/azure/storage_account_public/main.tf +++ b/modules/azure/storage_account_public/main.tf @@ -27,6 +27,7 @@ resource "azurerm_storage_account" "storage_account" { min_tls_version = var.min_tls_version nfsv3_enabled = var.nfsv3_enabled is_hns_enabled = var.is_hns_enabled + sftp_enabled = var.sftp_enabled blob_properties { dynamic "cors_rule" { diff --git a/modules/azure/storage_account_public/variables.tf b/modules/azure/storage_account_public/variables.tf index 11cd624b..ca423a35 100644 --- a/modules/azure/storage_account_public/variables.tf +++ b/modules/azure/storage_account_public/variables.tf @@ -143,4 +143,9 @@ variable "loganalytics_diagnostic_setting" { description = "Specifies the log categories that have to be sent to Log analytics." default = null } +variable "sftp_enabled" { + type = bool + description = "Enable or disable SFTP access for the storage account." + default = false +}