An AWS Lambda function that produces events for bank ATM transactions.
Three Lambda functions to use as targets of an EventBridge rule.
and the rule that routes the created events to the correct downstream function based on an event pattern.
This example uses AWS SAM templates to define the EventBridge rules. To learn more about using AWS SAM templates with EventBridge see Using Amazon EventBridge and AWS Serverless Application Model templates.
In the repo, the atmProducer subdirectory contains handler.js, which represents the ATM service producing events. This code is a Lambda handler written in Node.js, and publishes events to EventBridge via the AWS SDK using this line of JavaScript code.
https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-tutorial-get-started.html