1. Configuring the EventBridge Trigger
In this example, we have a Lambda function named “lambda-EventBridge”. Follow these steps to add an EventBridge trigger:- Navigate to the Lambda function configuration and add a new trigger.
- Search for “EventBridge” in the trigger options.
- Select EventBridge and choose to create a new rule.
- Provide a rule name (for example, “EveryMinute”) and select the “Schedule expression” option.


2. Verifying Permissions
Ensure that EventBridge has permission to invoke your Lambda function. Your function’s permissions policy should include a statement similar to this:This permissions setting allows the “EveryMinute” EventBridge rule to trigger your Lambda function automatically every minute.
3. Updating the Lambda Code
To monitor the event details that trigger your function, update your Lambda code to log the incoming event object. Use the example code below:4. Observing Logs in CloudWatch
After the Lambda function runs a few times, navigate to CloudWatch to review the logs. In the most recent log stream, you should notice entries indicating that your function is triggered every minute. Below is an example snippet from the CloudWatch logs:
Conclusion
This demo illustrated how to integrate Amazon EventBridge with AWS Lambda. You learned how to:- Create an EventBridge trigger using the Lambda console.
- Verify that the appropriate permissions are configured.
- Update your Lambda function to log and process event data.
- Monitor the function’s execution using CloudWatch logs.