AWS CloudTrail
What it is
CloudTrail is an auditing and governance service that records API calls and account activity across your AWS account. Every time someone (or something) interacts with AWS, whether through the Console, CLI, SDK, or another AWS service, CloudTrail can log it.
What each event records
Who made the call (IAM user, role, root, or AWS service)
What action was performed (e.g., RunInstances , DeleteBucket , PutObject )
When it happened (timestamp)
Where it came from (source IP address, user agent)
Which resources were affected
Result (success or error code)
Types of events
Event type What it covers Logged by default?
Management events Control-plane operations: creating EC2 instances, changing IAM policies, modifying security groups Yes (last 90 days in Event History)
Data events Data-plane operations: S3 object-level actions ( GetObject , PutObject ), Lambda invocations, DynamoDB item-level actions No (must be enabled, extra cost)
Insights events Detects unusual activity, like…