This week I locked the root account and set a budget. Now the question that comes after both: when something changes in the account, how do I find out who did it, what they did and when ? That is AWS CloudTrail .
What CloudTrail records
CloudTrail logs API activity in your account, whether it came from the console, the CLI, an SDK or another AWS service.
Each event says who (the identity), what (the API call), when , and where from (the source IP address).
It is the audit trail you open when a resource disappears or a setting changes.
Event types
Type What it covers Notes
Management events Control-plane actions, such as creating a role or launching an instance Recorded by default
Data events Object-level actions, such as S3 object reads or Lambda invokes Off by default, extra cost
Insights events Unusual API activity Optional
Event history vs a trail
Event history is on by default and lets you look up recent management events (the last 90 days) in the console, with no setup.
A trail delivers…