diff --git a/main.tf b/main.tf index 407532a..6f21999 100644 --- a/main.tf +++ b/main.tf @@ -78,6 +78,7 @@ resource "azurerm_storage_account" "storeacc" { # Storage Advanced Threat Protection #-------------------------------------- resource "azurerm_advanced_threat_protection" "atp" { + count = var.enable_advanced_threat_protection ? 1 : 0 target_resource_id = azurerm_storage_account.storeacc.id enabled = var.enable_advanced_threat_protection }