[{"data":1,"prerenderedAt":66},["ShallowReactive",2],{"pattern-dynamodb-streams-lambda-filters-tf":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":13,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":26,"language":34,"level":35,"meta":36,"patternArch":37,"resources":56,"s3URL":6,"services":6,"stem":61,"testing":62,"videoId":6,"__hash__":65},"patterns\u002Fpatterns\u002Fdynamodb-streams-lambda-filters-tf.json","Amazon DynamoDB Stream to AWS Lambda with filters",null,{"text":8},[9],"\u003Ccode>terraform destroy\u003C\u002Fcode>",[11,12],"content\u002Fcontributors\u002Fsakthivel-chellapparimanam.json","content\u002Fcontributors\u002Frachel-hanspal.json",{"text":14},[15,16],"terraform init","terraform apply","This pattern demonstrates how a Lambda function can get triggered when there is a new event in a DynamoDB stream using filters.","json","Terraform",{"template":21},{"repoURL":22,"templateURL":23,"projectFolder":24,"templateFile":25},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fdynamodb-streams-lambda-filters-tf","serverless-patterns\u002Fdynamodb-streams-lambda-filters-tf","dynamodb-streams-lambda-filters-tf\u002Ftf","ddb.tf",{"headline":27,"text":28},"How it works",[29,30,31,32,33],"For this example, a new event in a DynamoDB stream triggers a Lambda function based on a filter. The created stack has one DynamoDB table with streams enabled and 4 Lambda functions configured with ESM filters:","1. Bachelors Lambda (process-bachelors-request) - Triggers for every insert of Bachelors Record","2. Masters Lambda (process-masters-requests) - Triggers for every insert of Masters Record","3. Modify Lambda (process-modify-request) - Triggers for any updates","4. Delete Lambda (process-delete-request) - Triggeres for any remove","Python","200",{},{"icon1":38,"icon2":43,"icon3":46,"line1":50,"line2":54},{"x":39,"y":40,"service":41,"label":42},20,50,"dynamodb","Amazon DynamoDB",{"x":40,"y":40,"service":44,"label":45},"dynamodb-stream","Amazon DynamoDB Streams",{"x":47,"y":40,"service":48,"label":49},80,"lambda","AWS Lambda",{"from":51,"to":52,"label":53},"icon1","icon2","",{"from":52,"to":55,"label":53},"icon3",{"bullets":57},[58],{"text":59,"link":60},"Lambda event filtering","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Finvocation-eventfiltering.html","patterns\u002Fdynamodb-streams-lambda-filters-tf",{"text":63},[64],"See the GitHub repo for detailed testing instructions.","JEOxZyeqZ1xxhP4b7vLekepLO9sh29TZF_zfqRKIqa4",1778846884230]