Pattern: Missing use of auto rotation for AWS KMS key
Issue: -
You should configure your KMS keys to auto rotate to maintain security and defend against compromise.
Resolution: Configure KMS key to auto rotate.
Example of incorrect code:
resource "aws_kms_key" "bad_example" {
enable_key_rotation = false
}
Example of correct code:
resource "aws_kms_key" "good_example" {
enable_key_rotation = true
}