Review use of a disabled customer managed KMS key

Check keys needed by services without indiscriminately enabling intentionally disabled keys.

Description

A disabled aws_kms_key cannot encrypt or decrypt. Check whether it was disabled deliberately for incident response or retirement.

Potential impact

Several services can lose read, write or startup operations if they depend on the same key.

Remediation

Set is_enabled = true only after the key is approved for continued use. Check its policy and application permissions, then test a required operation. For a retiring key, follow the migration plan for dependent services.

Examples

Both examples refer to the same aws_kms_key.example resource.

Before

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

After

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

References