AWS CloudTrail: Auditing Account Activity
By the end of this lesson, you'll be able to:
- Explain what AWS CloudTrail records and why it exists
- Distinguish CloudTrail's account-activity auditing from CloudWatch's operational monitoring
- Trace a fictional AWS API action through to a recorded CloudTrail event
Prerequisites: "CloudWatch Alarms"
A different question: not "is it healthy," but "who changed this"
Everything covered so far in this module — metrics, logs, alarms — answers questions about application health. AWS CloudTrail exists to answer a genuinely different question: who or what performed a given action against an AWS resource, and when. CloudTrail records AWS API and account activity — actions taken through the Console, the CLI, or by AWS services themselves acting on your behalf.
CloudWatch versus CloudTrail: this distinction matters
It's worth stating this plainly, because the two get confused constantly: CloudTrail is not just another CloudWatch log, and CloudWatch and CloudTrail do not do the same thing. CloudWatch is built around application and service operational health; CloudTrail is built around auditing AWS account activity — and CloudTrail does not record every possible application-level event either; that's still application/service logging's job (Lesson 1).
Tracing an action through CloudTrail
A concrete, fictional example: an administrator's IAM role calls a fictional ModifySecurityGroup action, changing a Security Group's rules. CloudTrail records that this specific identity made that specific request at that specific time — information that becomes essential later if a team needs to understand why a Security Group's configuration changed, or who made an unexpected change to any AWS resource.
Exercise
A team notices a Security Group's rules changed unexpectedly overnight, and no application error or health alarm fired at the time. Using this lesson's distinction, explain which service — CloudWatch or CloudTrail — is the right place to look to find out which identity made that change, and why CloudWatch alone wouldn't answer that specific question.
Show hint
CloudWatch would tell you if the application's health changed; this question is about who changed an AWS resource's configuration.
AWS CloudTrail: Auditing Account Activity Quiz
My Notes
Log in to keep private notes on this lesson.
Questions about this lesson
No questions yet — be the first to ask.
Log in to ask a question about this lesson.
Summary
AWS CloudTrail records AWS API and account activity — who or what made a request, what action occurred, and when — answering a fundamentally different question from CloudWatch's operational health monitoring: CloudWatch asks whether the application is healthy, while CloudTrail asks who or what changed a given AWS resource.