Skip to content

Files

Latest commit

 

History

History
27 lines (18 loc) · 482 Bytes

AWS019.md

File metadata and controls

27 lines (18 loc) · 482 Bytes

Pattern: A KMS key is not configured to auto-rotate

Issue: -

Description

You should configure your KMS keys to auto rotate to maintain security and defend against compromise.

Resolution: Configure KMS key to auto rotate.

Examples

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
}