[{"data":1,"prerenderedAt":67},["ShallowReactive",2],{"pattern-eventbridge-schedule-secret-rotation-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":13,"description":16,"extension":17,"framework":18,"gitHub":19,"highlight":6,"introBox":25,"language":31,"level":32,"meta":33,"patternArch":34,"resources":54,"s3URL":6,"services":6,"stem":62,"testing":63,"videoId":6,"__hash__":66},"patterns\u002Fpatterns\u002Feventbridge-schedule-secret-rotation-cdk.json","Secret rotation using Amazon EventBridge Scheduler and AWS Lambda",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.",[11,12],"content\u002Fcontributors\u002Fsenthil-mohan.json","content\u002Fcontributors\u002Fshubhankar-sumar.json",{"text":14},[15],"cdk deploy","Secret rotation in AWS Secrets Manager using Amazon EventBridge Scheduler and AWS Lambda","json","AWS CDK",{"template":20},{"repoURL":21,"templateURL":22,"projectFolder":23,"templateFile":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Feventbridge-schedule-secret-rotation-cdk","serverless-patterns\u002Feventbridge-schedule-secret-rotation-cdk","eventbridge-schedule-secret-rotation-cdk","cdk\u002Feventbridge_schedule_secret_rotation_stack.py",{"headline":26,"text":27},"How it works",[28,29,30],"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.","Python","200",{},{"icon1":35,"icon2":40,"icon3":43,"line1":47,"line2":51},{"x":36,"y":37,"service":38,"label":39},20,50,"eventbridge-scheduler","Amazon EventBridge Scheduler",{"x":37,"y":37,"service":41,"label":42},"lambda","AWS Lambda",{"x":44,"y":37,"service":45,"label":46},80,"secretsmanager","AWS Secrets Manager",{"from":48,"to":49,"label":50},"icon1","icon2","trigger",{"from":49,"to":52,"label":53},"icon3","rotate secret",{"bullets":55},[56,59],{"text":57,"link":58},"Using cron and rate expressions to schedule rules in Amazon EventBridge","https:\u002F\u002Fdocs.aws.amazon.com\u002Feventbridge\u002Flatest\u002Fuserguide\u002Feb-scheduled-rule-pattern.html",{"text":60,"link":61},"AWS Secrets Manager rotation template","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Faws-secrets-manager-rotation-lambdas\u002Fblob\u002Fmaster\u002FSecretsManagerRotationTemplate\u002Flambda_function.py","patterns\u002Feventbridge-schedule-secret-rotation-cdk",{"text":64},[65],"See the GitHub repo for detailed testing instructions.","-jPiFQsa6sUoSihH8v5Ox7QVhgNA9AS5HHkO13PIbuM",1779273335849]