Review customer managed KMS key rotation

Use rotation supported by the key type and origin, and manage access permissions separately.

Description

Set enable_key_rotation = true to have KMS rotate key material on a schedule. The key ARN and policy stay the same. KMS retains the earlier material to decrypt existing ciphertext.

Potential impact

Without a rotation process, a key can exceed the material lifetime your organization requires.

Remediation

Check the key type and origin. For an eligible customer managed key, such as a KMS-generated symmetric encryption key, set enable_key_rotation = true where required and verify its schedule. For unsupported keys, identify their users and plan replacement. Revoke compromised permissions and re-encrypt data separately when needed.

Examples

Both examples keep the key enabled. The second turns on automatic rotation. Its description change has no effect on rotation.

Before

hcl
resource "aws_kms_key" "example" {
  description         = "KMS key 2"
  is_enabled          = true
  enable_key_rotation = false
}

After

hcl
resource "aws_kms_key" "example" {
  description         = "KMS key 1"
  is_enabled          = true
  enable_key_rotation = true
}

References