Implement a CloudWatch Events Rule That Calls an AWS Lambda Function
In this lab, you’ll practice implementing a CloudWatch Events Rule which calls a Lambda function. When you’re finished with this lab, you’ll have a Lambda which uses CloudFormation to provision a new EC2 instance upon a termination event.
Terms and conditions apply.
Lab info
Lab author
Challenge
Use Lambda to Provision a New EC2 Instance
Use a Lambda function to provision a new EC2 instance through a CloudFormation template.
Challenge
Create a CloudWatch Events Rule
Invoke a Lambda function from a CloudWatch Events Rule
Challenge
Verify the CloudWatch Events Rule
Manually terminate a running EC2 instance in order to trigger the recently created Events Rule.
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 CloudWatch
- AWS Lambda
- Amazon EC2