Description
A disabled customer managed KMS key, or one pending deletion, cannot encrypt or decrypt. Check which services still use the key and why it was taken out of service.
Potential impact
Dependent data access or recovery may fail. Deleting the key makes data that only it can decrypt unrecoverable.
Remediation
If the key is still required, cancel any scheduled deletion, then enable it and test the dependent service. Keep incident-response restrictions in place until approved. Migrate dependent data and backups before retiring the key.
Examples
Both tasks use my-kms-key. Confirm that the alias points to the intended existing key. The second task enables it with enabled: true.
Before
yaml
- name: Set the state of an existing KMS key
amazon.aws.kms_key:
alias: my-kms-key
state: present
enabled: false
After
yaml
- name: Set the state of an existing KMS key
amazon.aws.kms_key:
alias: my-kms-key
state: present
enabled: true