CloudTrail events and Config history
Who changed what?
CloudTrail records supported AWS activity as events. AWS Config records configuration information and changes for supported resources when recording is enabled and appropriately scoped. If a bookstore stops responding after a firewall change, CloudTrail can help identify the API operation and caller, while Config can help compare the resource settings before and after the change. Neither replaces request logs or proves why the application failed. The following is an abbreviated fictional timeline, not a real AWS response.
10:00Z Config: sg-lab allows app traffic from proxy10:02Z CloudTrail: RevokeSecurityGroupIngress10:03Z Config: expected rule absent10:04Z CloudWatch: checkout errors riseCloudTrail event history and fields
CloudTrail Event history provides recent management activity for the selected Region, covering the past 90 days. Management events describe control-plane operations such as changing a security group. Data events describe selected resource-level activity, such as S3 object reads; they are not included in ordinary Event history and require appropriate event collection configuration. For longer retention or additional event types, evaluate a trail or other supported collection and storage options. Verify selectors, regional scope, permissions, delivery and costs. Typical event fields include eventTime, eventSource, eventName, userIdentity, awsRegion, requestID when available, and errorCode when recorded. A role session can represent a person or a workload; do not assume the role name identifies a specific human.
Config history and compliance
A configuration item represents recorded resource state and metadata at a point in time. Compare configuration items to see what changed; recording coverage and frequency matter. Config rules evaluate selected resources against desired conditions and report compliance. A compliant resource under one rule is not necessarily secure overall. A missing configuration item may reflect disabled recording, an unsupported resource type or scope mismatch rather than absence of a change. Config history is not a backup or automatic rollback. In the example the missing rule is a hypothesis worth checking against the intended access matrix; do not simply open all traffic.
Correlate without overclaiming
Normalize timestamps to UTC and compare the same account, region and resource. Use event and request identifiers when present, but note that an AWS API request ID is not automatically your application trace ID. An API error can indicate an unsuccessful attempt; check recorded state before claiming a mutation succeeded. An event shortly before an outage is a clue, not proof of causation. Preserve redacted evidence, compare the last known good configuration and request an authorized, narrow correction only after confirming the suspected cause. Recheck actual application behavior and policy after the correction.
Practice: build a change timeline
Suppose an S3 object read is missing from Event history. Explain why that does not prove nobody accessed the object. Identify which data event coverage would be required and what existing application or access logs might contribute. For the firewall example, write three observations and one hypothesis separately. Next use AWS Health and resource inventory to narrow an incident.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
CloudTrail events and Config history — knowledge check
Apply monitoring and incident reasoning to the fictional bookstore.
Which source is best for identifying the caller of a security-group API change?
Which source helps compare recorded resource settings before and after a change?
An S3 object read is not in ordinary Event history. Why might that happen?
An API change precedes an outage by two minutes. What can you conclude?
A resource has no configuration item in the expected interval. What should you check?