Description
Check which disks and applications depend on a disabled KMS key. They may still need it to encrypt or decrypt data.
Potential impact
Operations that need the disabled key can fail and interrupt service.
Remediation
Confirm why the key was disabled. If it is still needed and approved for use, set status = "Enabled" and verify a dependent operation. For a key disabled during incident response or retirement, follow that process before changing its state.
Examples
Before
hcl
resource "alicloud_kms_key" "key" {
description = "Hello KMS"
pending_window_in_days = "7"
status = "Disabled"
}
After
hcl
resource "alicloud_kms_key" "key" {
description = "Hello KMS"
pending_window_in_days = "7"
status = "Enabled"
}