Query CloudTrail Events with Athena
I was recently building a NiFi Flow for CloudTrail events that enriched the events with IP geolocation data, then wrote them to an S3 bucket to query with Athena. But I wondered, is it possible to use Athena to query CloudTrail records directly from S3 without reprocessing them?
The answer is yes, as long as some tortured SQL syntax doesn't bother you.