Configure CloudTrail and Monitoring with CloudWatch on AWS
In this lab, you’ll practice how to stay notified of changes in your AWS account or resources. When you’re finished, you’ll have an understanding of how to use CloudTrail and CloudWatch to view, store and alert on relevant events.
Terms and conditions apply.
Lab info
Lab author
Challenge
Set up a CloudTrail Trail
Configure a trail to store CloudTrail management events indefinitely in an Amazon S3 bucket. These events will be used to create alerts off of later in this lab.
Challenge
Create an SNS Topic and View CloudTrail Event History
Create an SNS topic to start setting up a text notification system and then view this activity in the event history collected by CloudTrail.
Challenge
Configure CloudWatch Logs Log Group for a Trail
Create a new CloudWatch Logs log group and associate it with the trail you created in Challenge 1.
Challenge
Create a CloudWatch Metric Filter
Based on the data being collected in your CloudWatch Logs log group, set up a CloudWatch Metric Filter to emit a value each time an SNS topic is deleted from your AWS account.
Challenge
Create a CloudWatch Alarm That Sends Notifications on Trigger
Build a CloudWatch alarm that will alert based on data from the metric filter you created in the previous challenge. Set up the alarm to send you an email when an SNS topic in your account gets deleted.
Challenge
Triggering a CloudWatch Alarm
Now that you’ve set up a CloudWatch Alarm to watch for when SNS topics get deleted, go in and delete the topic you created to see the alarm go off.
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
- This lab has no prerequisites.