What does CloudTrail record?
BeginnerConceptObservability, Security Services and IaC
Answer
CloudTrail records AWS API calls: who, what, when, from where, and the response. Management events are on by default and viewable in Event history for 90 days. Data events (S3 object-level, Lambda invokes, DynamoDB item operations) and Insights events must be enabled and cost extra. A trail delivers logs to S3 (and optionally CloudWatch Logs) indefinitely, with an Organization trail covering all accounts.
aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=DeleteBucket
Enable log file validation to detect tampering.
More on Observability, Security Services and IaC
How are CloudWatch metrics organized?BeginnerHow do CloudWatch Logs groups, streams and Logs Insights work?BeginnerExplain CloudWatch alarm states and missing data handling.AdvancedWhat is the CloudWatch Embedded Metric Format?AdvancedWhat does EC2 not report to CloudWatch by default?IntermediateWhat is AWS Config and how do rules work?Intermediate