I have a serverless lambda set up to listen to eventbridge, and per the docs it’s using CloudTrail to get the event:
events: [
{
eventBridge: {
pattern: {
source: ['aws.s3'],
'detail-type': ['AWS API Call via CloudTrail'],
detail: {
eventSource: ['s3.amazonaws.com'],
eventName: ['PutObject'],
requestParameters: {
bucketName: ['mybucket']
}
}
}
}
}
]
the problem is that the event object isn’t what I’m expecting, I was expecting EventBridge event message structure - Amazon Simple Storage Service which includes the details object that will contain metadata. I’m epecting an object that looks like this example
EventBridge event message structure - Amazon Simple Storage Service