Open-source demo project implementation of KMS Key Rotation Using AWS CDK, EventBridge, and Lambda Function
This is a CDK project written in TypeScript to demo how to implement KMS Key Rotation on a custom schedule using AWS-CDK.
For more details on how to deploy the infrastructure and the solution details, please refer to the Blog Post.
The cdk.json
file tells the CDK Toolkit how to execute your app.
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testsnpx cdk deploy
deploy this stack to your default AWS account/regionnpx cdk diff
compare deployed stack with current statenpx cdk synth
emits the synthesized CloudFormation template