generated from terraform-linters/tflint-ruleset-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
purge_soft_delete_on_destroy & recover_soft_deleted_key_vaults on the…
… provider
- Loading branch information
Showing
4 changed files
with
185 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# azurerm_keyvault_features_check | ||
|
||
**Severity:** Warning | ||
|
||
|
||
## Example | ||
|
||
```hcl | ||
provider "azurerm" { | ||
alias = "prod" | ||
features { | ||
key_vault { | ||
purge_soft_delete_on_destroy = false | ||
recover_soft_deleted_key_vaults = false | ||
} | ||
} | ||
} | ||
``` | ||
|
||
## Why | ||
|
||
Setting purge_soft_delete_on_destroy and recover_soft_deleted_key_vaults to true ensures that deleted Key Vaults are securely purged and recoverable, preventing unintended data loss while adhering to compliance and security policies. | ||
|
||
## How to Fix | ||
|
||
```hcl | ||
provider "azurerm" { | ||
alias = "prod" | ||
features { | ||
key_vault { | ||
purge_soft_delete_on_destroy = true | ||
recover_soft_deleted_key_vaults = true | ||
} | ||
} | ||
} | ||
``` | ||
|
||
|
||
## How to disable | ||
|
||
```hcl | ||
rule "azurerm_keyvault_features_check" { | ||
enabled = false | ||
} | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.