Identify and remove any disabled Amazon KMS Customer Master Keys (CMKs) from your AWS cloud account in order to lower the cost of your AWS bill.
This rule can help you with the following compliance standards:
- APRA
- MAS
- NIST4
For further details on compliance standards supported by Conformity, see here.
This rule resolution is part of the Conformity Security & Compliance tool for AWS.
optimisation
Each Customer Master Keys (CMK) that you create with Amazon KMS costs $1 / month until you delete it, regardless of whether it is being used or not or where the underlying key material was generated. Because the disabled CMKs are also charged, it is recommended to delete the unused keys in order to avoid any unexpected charges on your AWS bill.
Note: Recover your encrypted data: once a Customer Master Key is deleted, all data encrypted under that key becomes unrecoverable. Amazon KMS service allows a minimum waiting period of 7 days to verify whether your keys are still needed to decrypt the data before these are completely deleted. The deletion can be canceled any time before the waiting period expires.
Audit
To determine if there are any disabled (unused) Customer Master Keys (CMKs) available within your AWS cloud account, perform the following operations:
Remediation / Resolution
Amazon Key Management Service (KMS) allows a waiting period between 7 and 30 days before a Customer Master Key (CMK) is completely deleted and unrecoverable. The deletion can be canceled any time before the waiting period expires. To schedule deletion for any unused (disabled) Customer Master Key available in your AWS cloud account, perform the following operations:
(Optional) To cancel a Customer Master Key (CMK) deletion before the waiting period ends, perform the following operations:
References
- AWS Documentation
- AWS Key Management Service
- AWS KMS concepts
- AWS Key Management Service pricing
- Deleting AWS KMS keys
- AWS Command Line Interface (CLI) Documentation
- kms
- list-keys
- describe-key
- schedule-key-deletion
- cancel-key-deletion
- CloudFormation Documentation
- AWS Key Management Service resource type reference
- Terraform Documentation
- AWS Provider