From 83293e7f80a5e294443ab503d4926285490937bf Mon Sep 17 00:00:00 2001 From: Patrik Kovacs <74901276+patrik-pa4k@users.noreply.github.com> Date: Thu, 6 Feb 2025 16:52:20 +0100 Subject: [PATCH] Adding property to enable/disable sftp on storage account --- modules/azure/storage_account_public/main.tf | 1 + modules/azure/storage_account_public/variables.tf | 5 +++++ 2 files changed, 6 insertions(+) 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 +}