Amazon EventBridge Data Plane Logging with AWS CloudTrail

Amazon EventBridge PutEvents → AWS CloudTrail Data events → Amazon EventBridge Rule → AWS Lambda Processor

Log Amazon EventBridge PutEvents API calls with AWS CloudTrail data events and process them with an AWS Lambda function for security and operational visibility.

This pattern creates a single-Region CloudTrail trail that logs data events for the Amazon EventBridge event buses in the Region you deploy to.
CloudTrail captures PutEvents API calls and delivers them as events to EventBridge.
An EventBridge rule matches these CloudTrail events and triggers a Lambda function for alerting.
This provides visibility into who is putting events, from where, and how many, which is essential for security auditing.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/cloudtrail-eventbridge-lambda/typescript/cdk

Deploy

cdk deploy


Testing

See the README for testing instructions.

Cleanup

cdk destroy

Created by:

Nithin Chandran R

Nithin Chandran R

Technical Account Manager at AWS