enable-key-rotation
command to enable key rotation for a specific AWS KMS key.aws kms enable-key-rotation --key-id <key-id>
enable-key-deletion
command to enable deletion protection for a specific AWS KMS key.aws kms enable-key-deletion --key-id <key-id>
enable-key-usage-logging
command to enable key usage audit logging for a specific AWS KMS key.aws kms enable-key-usage-logging --key-id <key-id>
<key-id>
with the actual ID of the AWS KMS key you want to remediate.
boto3
library to create a new CloudTrail trail for KMS.boto3
library to create a new AWS Config rule for KMS.boto3
library to enable AWS Security Hub for KMS.