tflint-ruleset-google icon indicating copy to clipboard operation
tflint-ruleset-google copied to clipboard

[proposal] Warn google_kms_crypto_key without prevent_destroy

Open wata727 opened this issue 5 years ago • 0 comments
trafficstars

See https://www.terraform.io/docs/providers/google/r/kms_crypto_key.html

Note: CryptoKeys cannot be deleted from Google Cloud Platform. Destroying a Terraform-managed CryptoKey will remove it from state and delete all CryptoKeyVersions, rendering the key unusable, but will not delete the resource on the server. When Terraform destroys these keys, any data previously encrypted with these keys will be irrecoverable. For this reason, it is strongly recommended that you add lifecycle hooks to the resource to prevent accidental destruction.

wata727 avatar Sep 26 '20 14:09 wata727