Hi,
I'm creating a bucket with eventBridgeEnable = true
, custom event bus and a simple rule like this
{
"detail-type": ["Object Created", "Object Tags Added"],
"source": ["aws.s3"],
"detail": {
"bucket": {
"name": ["etl-glue-dev-1kq3vvnhpcn8j"]
},
"object": {
"size": [{
"numeric": [">", 30]
}],
"key": [{
"prefix": "src/"
}]
}
}
}
The target is Lambda with DLQ. Stack deployed and all resources and permissions set up correctly.
But no events arrive from the bucket, when I upload objects.
- The doc here says
Many AWS services generate events that EventBridge receives. When an AWS service in your account emits an event, it goes to your account’s default event bus
Does it mean I need to use default event bus with S3 events?
- Furthermore, its says
To record events with a detail-type value of AWS API Call via CloudTrail, a CloudTrail trail with logging enabled is required.
Does it mean cloudtrail must be enabled on S3 buckets to make above rule work?