This is a two part lab. In part one of the lab, you learn how to use a Lambda function with CloudWatch events to monitor the creation of an EC2 instance, using a Lambda function you create manually. In part two of the lab, you create a Lambda function from a blueprint to alert you to a CloudWatch alarm, with notification through an Amazon SNS topic. Prerequisites: To successfully complete this lab, you should be familiar with basic CloudWatch and SNS concepts. Node.js and Python programming are required, although full solution code is provided. You should have at a minimum taken the “Introduction to AWS Lambda” lab.
Level
Fundamental
Duration
1 Hours 15 MinutesCourse Objectives
In this course, you will learn how to:
- Create an AWS Lambda function
- Configure Amazon CloudWatch Events
- Configure an Amazon CloudWatch Alarm
- Configure Amazon Simple Notification Service (SNS) to send notifications
Intended Audience
This course is intended for:
- Architects
- Developers
- Infrastructure Engineers
Prerequisites
We recommend that attendees of this course have the following prerequisites:
- Familiar with Amazon EC2
- Node.js programming is required, although full solution code is provided
Course Outline
- Task 1: Create an AWS Lambda function
- Task 2: Create an Amazon CloudWatch Events Rule
- Task 3: Test The Amazon CloudWatch Events Rule and Lambda Function
- Task 4: Create a Website Checker Lambda Function
- Task 5: Configure Amazon SNS
- Task 6: Create an Amazon CloudWatch Alarm