Amazon EventBridge to Amazon CloudWatch Logs

EventBridge → CloudWatch Logs

Create an EventBridge rule that sends events to CloudWatch Logs

This template creates an EventBridge event bus and rule that publishes matched events to CloudWatch Logs. In this example, the rule filters for specific attributes in the event before sending to the CloudWatch Logs target.

< 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/eventbridge-cloudwatch-terraform

Deploy

See the GitHub repo for detailed deployment instructions.


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

1. Change directory: cd eventbridge-cloudwatch-terraform.
2. Delete the stack: terraform destroy.
3. Confirm the stack has been deleted: terraform show.

Created by:

Ahmad Aboushady

Ahmad Aboushady

Senior Technical Account Manager, AWS