Secret rotation in AWS Secrets Manager using Amazon EventBridge Scheduler and AWS Lambda
This sample project demonstrates rotating secrets in AWS Secrets Manager using Amazon EventBridge Scheduler and AWS Lambda at desired intervals for several use cases. e.g. rotating OAuth tokens with limited lifespan.
An EventBridge schedule is created based on the 'Secret rotation schedule' CDK parameter with rotation Lambda as the target which does the job
You could provide the interval at which you want the secret to be rotated as a cron or rate expression.