Search code examples
amazon-web-servicesamazon-s3aws-lambdas3-bucket

AWS Lambda and S3 trigger event data


I have a lambda function that I need to run eveytime there is a change in my s3 Bucket. I have added the trigger and it is working just fine, but I was wondering if there is any way to limit the scope the lambda function is to be run... for example Instead of running over the entire bucket, it runs only in the folder (inside the bucket) that change has been made?! or something like that..!


Solution

  • Per this AWS announcement, you can add prefix or suffix restrictions for S3 event triggers.