I am trying to catch the CloudTrail events into EventBridge. I am following this article:
Which also uses this code base:
I am pretty much doing everything the same, except in TypeScript:
Trail.onEvent(this, 'OnEvent', {
description: 'Catch QuickSight CloudTrail events.',
target: new aws_events_targets.CloudWatchLogGroup(new LogGroup(this, 'EventLog')),
eventPattern: {
source: ['aws.quicksight'],
detail: {
eventSource: ['quicksight.amazonaws.com'],
eventName: ['CreateGroup'],
},
},
})
Yet, I am not getting any events in my log.
I do see them in the CloudTrail UI though.
The final EventBridge rule is:
{
"detail-type": ["AWS API Call via CloudTrail"],
"source": ["aws.quicksight"],
"detail": {
"eventSource": ["quicksight.amazonaws.com"],
"eventName": ["CreateGroup"]
}
}
- QuickSight and everything is in the same region
- I am using AWS CDK, so I can almost rule out any permission issue, as all of that is handled
- I am using the same rules as the linked codebase above, just in TS
Is there anything else that needs to be done on the account to be able to pipe these events to EventBridge?
Thanks.