Interview Prep/Terraform/Security, Secrets and Access

How do you handle KMS keys in Terraform safely?

BeginnerProductionSecurity, Secrets and Access
Answer

Set deletion_window_in_days to 30, enable rotation, add prevent_destroy = true and write explicit key policies (do not rely on defaults) so you cannot lock yourself out. Deleting a key makes everything encrypted with it unreadable, so changes go through the highest review tier.

All Terraform questions Roadmap: Terraform in production

More on Security, Secrets and Access