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.
Lab info
Lab author
Challenge
Create a CloudWatch Alarm for an EC2 Instance
Create an Alarm for high CPU utilization.
Challenge
Create a Lambda Function Which Logs Alarm Events
Create a Lambda function which prints event information from an Alarm.
Challenge
Create an EventBridge Rule for a CloudWatch Alarm
Create a rule in EventBridge which responds to an alarm and triggers a Lambda function.
Challenge
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.
Guided walkthrough
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.
Recommended prerequisites
- Amazon EC2
- Amazon EventBridge
- AWS Lambda
- AWS CloudWatch