Does CloudTrail EventBridge work without a trail? I measured it
TL;DR With no trail, 0 of 10 API-call events reached EventBridge, though CloudTrail's history recorded all 10. With a trail logging, events arrived within seconds. A second run with nine real create calls had every one delivered (1 to 19 s). With no trail, native service events (EBS, EC2, RDS) still reach EventBridge, so you can detect new resources, but they don't say who made them. How I…
In a recent test, the functionality of CloudTrail EventBridge without a trail was examined. Out of ten API-call events, none reached EventBridge when no trail was present, although all 10 were recorded in CloudTrail's history. However, when a trail was enabled and logging was active, the events arrived within seconds. A second test with nine real create calls resulted in every one being delivered, with a delay of up to 19 seconds.
Native service events such as EBS, EC2, and RDS still reached EventBridge, allowing for the detection of new resources, but these events did not indicate who created them. The test showed that with no trail, CloudTrail EventBridge did not work, as only 0 out of 10 API-call events reached it. Nevertheless, the native service events were still recorded in the history, providing a means to detect new resources within the AWS account.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to