Below EventBridge rule will be triggered based on the following conditions:
- Files uploaded to
myexample
bucket. - Inside a specific prefix
some/folder/path/
.- Including subfolders under the prefix
{
"source": ["aws.s3"],
"detail": {
"eventSource": ["s3.amazonaws.com"],
"eventName": ["PutObject"],
"requestParameters": {
"bucketName": ["myexample"],
"key": [{
"prefix": "some/folder/path/"some/folder/path/"
}]
}
}
}
You can test the invitation by setting a Lambda function as the target and printing the `event`.
Leave a Reply