[{"data":1,"prerenderedAt":65},["ShallowReactive",2],{"pattern-dynamodb-lambda-java-terraform":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":15,"description":19,"extension":20,"framework":21,"gitHub":22,"highlight":6,"introBox":28,"language":33,"level":34,"meta":35,"patternArch":36,"resources":50,"s3URL":6,"services":6,"stem":59,"testing":60,"videoId":6,"__hash__":64},"patterns\u002Fpatterns\u002Fdynamodb-lambda-java-terraform.json","Amazon DynamoDB to AWS Lambda",null,{"headline":8,"text":9},"Cleanup",[10,11],"1. Delete the stack: \u003Ccode>terraform destroy\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>terraform show\u003C\u002Fcode>",[13,14],"content\u002Fcontributors\u002Fezzeddine-el-ayoubi.json","content\u002Fcontributors\u002Fsteven-cook.json",{"text":16},[17,18],"terraform init","terraform apply","Invoke a Lambda function from changes to a DynamoDB table using event-based filters","json","Terraform",{"template":23},{"projectFolder":24,"repoURL":25,"templateURL":26,"templateFile":27},"dynamodb-streams-lambda-terraform-java","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fdynamodb-streams-lambda-terraform-java","serverless-patterns\u002Fdynamodb-streams-lambda-terraform-java","main.tf",{"headline":29,"text":30},"How it works",[31,32],"The Terraform template deploys a Lambda function, a DynamoDB table, and the minimum IAM resources required to run the application.","When items are written or updated in the DynamoDB table, the changes are sent to a stream. This pattern configures a Lambda function to poll this stream. The function is invoked with a payload containing the contents of the table item that changed.","Java","200",{},{"icon1":37,"icon2":42,"line1":46},{"x":38,"y":39,"service":40,"label":41},20,50,"dynamodb","Amazon DynamoDB",{"x":43,"y":39,"service":44,"label":45},80,"lambda","AWS Lambda",{"from":47,"to":48,"label":49},"icon1","icon2","",{"headline":51,"bullets":52},"Additional resources",[53,56],{"text":54,"link":55},"AWS Docs: DynamoDB Streams and AWS Lambda Triggers","https:\u002F\u002Fdocs.aws.amazon.com\u002Famazondynamodb\u002Flatest\u002Fdeveloperguide\u002FStreams.Lambda.html",{"text":57,"link":58},"Creating a scalable serverless import process for Amazon DynamoDB","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fcreating-a-scalable-serverless-import-process-for-amazon-dynamodb\u002F","patterns\u002Fdynamodb-lambda-java-terraform",{"headline":61,"text":62},"Testing",[63],"See the GitHub repo for detailed testing instructions.","U8DXWIV-MLCt6cvUm7lvUgN6pfM9BT_D1ou4OtnHcC4",1778846884178]