create-key
command: aws kms create-key
.schedule-key-deletion
command: aws kms schedule-key-deletion --key-id <old-key-id> --pending-window-in-days <number-of-days>
.aws kms get-key-rotation-status --key-id <key-id>
.enable-key-rotation
command: aws kms enable-key-rotation --key-id <key-id>
.aws cloudtrail create-trail --name <trail-name> --s3-bucket-name <bucket-name> --is-multi-region-trail --include-global-service-events --enable-log-file-validation
.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.