AWS EventBridge simplifies the creation of applications based on event-driven architecture in the cloud. It is a serverless event management service that allows us to create rules, pipes, and schemas to trigger targets when an event occurs.
In this Cloud Lab, you’ll explore EventBridge rules using an event-triggered web application. First, you’ll create a DynamoDB table to store sample data. Next, you’ll create a trail to log an event when an item is added to the table. Moving on, you’ll create a Lambda function as the event consumer. The Lambda function will perform sentiment analysis on the data stored in the DynamoDB using Amazon Comprehend. It’ll also publish a message to SNS based on the sentiment. Finally, you’ll create an EventBridge rule to process the event and trigger the target. You’ll then test the rule and deploy a simple React front-end application to add data to the table and trigger events.
By the end of this Cloud Lab, you’ll get hands-on experience with EventBridge and event-driven architectures. Also, you’ll be able to create rules for events logged by CloudTrail.
The architecture diagram below shows the infrastructure you’ll build in this Cloud Lab: