Utilize Amazon EventBridge to Trigger a Lambda Function on a CloudWatch Alarm
In this lab, you’ll practice connecting a Lambda function to an EventBridge Rule that is triggered by a CloudWatch Alarm. When you’re finished with this lab, you’ll have a Lambda function that runs in response to an EC2 instance’s high CPU utilization alarm.
Terms and conditions apply.
Create a CloudWatch Alarm for an EC2 Instance
Create an Alarm for high CPU utilization.
Create a Lambda Function Which Logs Alarm Events
Create a Lambda function which prints event information from an Alarm.
Create an EventBridge Rule for a CloudWatch Alarm
Create a rule in EventBridge which responds to an alarm and triggers a Lambda function.
Stress Test an EC2 Instance
Simulate CPU usage spike on an EC2 instance.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.
- Amazon EC2
- Amazon EventBridge
- AWS Lambda
- AWS CloudWatch