This lab provides you with an understanding of EventBridge.
Objectives
- Create Lambda functions to log events and reboot EC2 instances.
- Create an EventBridge scheduled rule to log Amazon EC2 Auto Scaling events.
- Create an EventBridge Scheduler to reboot EC2 instances monthly.
- Test an EventBridge rule by manually updating an EC2 Auto Scaling group.
Prerequisites
- Basic understanding of AWS services, particularly EC2 and Lambda
- Familiarity with Python programming language
- Basic knowledge of cron expressions and scheduling
- Experience with AWS Management Console navigation
Outline
Task 1: Creating the LogAutoScalingEvent Lambda function
Task 2: Creating the RebootEC2 Lambda function with an EventBridge scheduled rule
Task 3: Creating the LogAutoScaling EventBridge rule
Task 4: Testing the EventBridge rules