From 78b2beafa3694c7364e5878a18359053b66cfc3c Mon Sep 17 00:00:00 2001 From: nate Date: Wed, 30 Jun 2021 22:55:31 +0200 Subject: [PATCH] set purge protection as false by default - Nate --- main.tf | 1 + variables.tf | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/main.tf b/main.tf index 0df918b..7b4fcf0 100644 --- a/main.tf +++ b/main.tf @@ -12,6 +12,7 @@ resource "azurerm_key_vault" "TerraKeyVault" { sku_name = var.SkuName tenant_id = var.TenantID soft_delete_retention_days = var.SoftDeleteRetention + purge_protection_enabled = var.purgeProtectionEnabled ######################## #Others Keyvault param diff --git a/variables.tf b/variables.tf index 81a1c61..74f537e 100644 --- a/variables.tf +++ b/variables.tf @@ -29,6 +29,10 @@ variable "SoftDeleteRetention" { default = 7 } +variable "purgeProtectionEnabled" { + default = false +} + variable "EnabledForDeployment" { type = string default = "true"