1. Enable [Amazon EventBridge] in S3 bucket properties
- Send notifications to Amazon EventBridge for all events in this bucket -> ON
2. Change Event pattern for trigger:
from
{
"source": ["aws.s3"],
"detail-type": ["AWS API Call via CloudTrail"],
"detail": {
"eventSource": ["s3.amazonaws.com"],
"eventName": ["PutObject", "CompleteMultipartUpload", "CopyObject"],
"requestParameters": {
"bucketName": ["your-bucket-name"],
"key": ["your-object-key"]
}
}
}
to
{
"source": ["aws.s3"],
"detail-type": ["Object Created"],
"detail": {
"bucket": {
"name": ["your-bucket-name"]
},
"object": {
"key": ["your-object-key"]
}
}
}