jamlen
02/18/2022, 12:35 PMEventBus
how do I point to the Default event bus? I've been trying to set up a subscriber to all dynamoDB events but it never gets hit and I'm assuming that's because the events are being fired onto the default bus.Frank
Frank
import * as events from "aws-cdk-lib/aws-events";
new EventBus(this, "Bus", {
eventBridgeEventBus: events.EventBus.fromEventBusName(
this, "ImportedBus", "default"
),
rules: {
...
},
});
jamlen
02/18/2022, 3:59 PMFrank
jamlen
02/18/2022, 4:03 PMcrossPlatformPopulator: {
eventPattern: {
source: ['aws.dynamodb'],
},
targets: ['src/crossPlatformPopulator.handler']
}
and the handler just console.log's the event details. I was hoping that the create, update and delete events would land here but it gets nothing, which makes me think it was the default bus issueFrank
Frank
Ashishkumar Pandey
02/18/2022, 5:27 PMFrank