1.CloudTrail Event Types and Trails
CloudTrail records every API call made in your account. Management events cover control-plane actions like creating a role or a subnet; data events cover high-volume resource-level actions like reading an S3 object. Event history keeps 90 days of management events automatically, no setup needed. A trail is what you create to keep events longer, choose which event types to log, and deliver them to an S3 bucket you control.
Key features
- Management events (control-plane operations, e.g. CreateSubnet, AttachRolePolicy) are logged by default; data events (e.g. S3 GetObject, Lambda Invoke) are off by default and cost extra
- Event history shows only the past 90 days of management events per Region, with no setup required — it exists even if you never create a trail
- A trail delivers events to an S3 bucket you specify, optionally also to CloudWatch Logs and EventBridge, and is what gives you retention past 90 days
- A multi-Region trail (the console default) captures every enabled Region plus global-service events (IAM, STS); a single-Region trail (CLI-only) covers one Region
- Read events (Describe*, Get*) and write events (Put*, Delete*, Create*) can be logged separately or together — a trail's event selector controls which
- CloudTrail Lake stores events in a queryable event data store with configurable retention (up to ~7 years), separate from the S3-bucket trail model
- Event history
- On by default, no setup
- Management events only, 90 days per Region
- Viewed in the console or via lookup-events
- Trail
- You create it and choose an S3 bucket
- Any event type, retained as long as you keep the logs
- Can also stream to CloudWatch Logs / EventBridge
Signature
Management events (default) vs data events (opt-in, billed) · Event history (90 days) vs trail (durable)
Management events (control plane) are logged by default; data events (S3 object-level, Lambda Invoke) are off by default and billed extra. Event history is a free 90-day management-events view with no setup. A trail is what you create for durable retention, data-event coverage, and delivery to S3/CloudWatch Logs/EventBridge.