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.
* Our Labs are Available for Enterprise and Professional plans only. Terms and conditions apply.
Ara is a software engineer and consultant based in Seattle, Washington. Their background is in philosophy and they are primarily self-taught, getting their start in programming through community workshops and online courses. They are a co-founder at Stormlight Consulting, where they work with clients to help them build out their cloud computing dreams. Prior to that, they were a developer within Microsoft Azure, working on performance and crash management tools. They are experienced at working o... moren services that demand high availability, strict data privacy measures, and distributed networks at large scales. These days, they are also studying and creating content for other learners in the field of quantum computing. Ara is passionate about leveraging their unique background to empathetically communicate with audiences of a variety of skill levels, specifically when it comes to breaking down intimidating technical concepts for others in an intuitive, relatable way.
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.
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.
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.
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.
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.
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.
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.