In this lab, you will configure logging and monitoring in an AWS account.
Objectives
- Analyze CloudTrail events in CloudWatch.
- Create a CloudTrail trail with CloudWatch logging enabled.
- Create an Amazon SNS topic and an email subscription to it.
- Create CloudWatch metric filters and CloudWatch alarms.
- Query CloudTrail logs by using Amazon CloudWatch Logs Insights.
Prerequisites
- Basic understanding of AWS Management Console navigation
- Familiarity with AWS logging and monitoring concepts
- Access to a valid email address for SNS notifications
- Experience with basic AWS services (IAM, CloudWatch, CloudTrail)
Outline
Task 1: Creating a CloudTrail trail with CloudWatch Logs enabled
Task 2: Creating an SNS topic and subscribing to it
Task 3: Creating a CloudWatch alarm based on a metric filter
Task 4: Querying CloudTrail logs by using CloudWatch Logs Insights