Search code examples
amazon-web-servicesaws-lambdaaws-secrets-manager

How I can trigger a Lambda function each time I update AWS Secrets Manager?


I'm using AWS Secrets Manager, and I have also a Lambda function.

How do I trigger my Lambda function each time I add/edit/delete (update) a secret in AWS Secrets Manager?


Solution

    1. All SecretsManager operations are logged with CloudTrail.
    2. Match these events with EventBridge.
    3. Set up the lambda as a target for the EventBridge rule.