[{"data":1,"prerenderedAt":65},["ShallowReactive",2],{"pattern-eventbridge-lambda-terraform":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":27,"language":33,"level":34,"meta":35,"patternArch":36,"resources":49,"s3URL":6,"services":58,"stem":59,"testing":60,"videoId":32,"__hash__":64},"patterns\u002Fpatterns\u002Feventbridge-lambda-terraform.json","Amazon EventBridge 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],"content\u002Fcontributors\u002Fstephen-monaghan.json",{"text":15},[16,17],"terraform init","terraform apply","This pattern creates a Lambda function that publishes an event to EventBridge.","json","Terraform",{"template":22},{"projectFolder":23,"repoURL":24,"templateURL":25,"templateFile":26},"eventbridge-lambda-terraform","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Feventbridge-lambda-terraform","serverless-patterns\u002Feventbridge-lambda-terraform","main.tf",{"headline":28,"text":29,"test":32},"How it works",[30,31],"This template deploys a Lambda function that is triggered by an EventBridge rule. In this example, the rule filters for specific attributes in the event before invoking the function.","The Events section of the AWS::Serverless::Function type also sets up the required permissions for EventBridge to invoke this specific function.","","Node.js","100",{},{"icon1":37,"icon2":42,"line1":46},{"x":38,"y":39,"service":40,"label":41},20,50,"eventbridge","EventBridge",{"x":43,"y":39,"service":44,"label":45},80,"lambda","AWS Lambda",{"from":47,"to":48,"label":32},"icon1","icon2",{"headline":50,"bullets":51},"Additional resources",[52,55],{"text":53,"link":54},"Reducing custom code by using advanced rules in Amazon EventBridge","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Freducing-custom-code-by-using-advanced-rules-in-amazon-eventbridge\u002F",{"text":56,"link":57},"Use Amazon EventBridge to Build Decoupled, Event-Driven Architectures","https:\u002F\u002Fserverlessland.com\u002Flearn\u002Feventbridge",{"from":40,"to":44},"patterns\u002Feventbridge-lambda-terraform",{"headline":61,"text":62},"Testing",[63],"See the README in the GitHub repo for detailed testing instructions.","3yoDSxDJhrW2pIT2OeIiX5uTfdl5-IWemUGjeBmdNRA",1781519741174]