[{"data":1,"prerenderedAt":74},["ShallowReactive",2],{"pattern-s3-eventbridge-lambda-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":11,"deploy":13,"description":16,"extension":17,"framework":18,"gitHub":19,"highlight":6,"introBox":25,"language":32,"level":33,"meta":34,"patternArch":35,"resources":54,"s3URL":6,"services":6,"stem":69,"testing":70,"videoId":6,"__hash__":73},"patterns\u002Fpatterns\u002Fs3-eventbridge-lambda-cdk.json","Amazon S3 to Amazon EventBridge to AWS Lambda",null,{"text":8},[9,10],"1. Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>",[12],"content\u002Fcontributors\u002Farun-thangaraj.json",{"text":14},[15],"cdk deploy","Creates an S3 bucket that publishes events to EventBridge that are routed to Lambda.","json","AWS CDK",{"template":20},{"projectFolder":21,"repoURL":22,"templateURL":23,"templateFile":24},"s3-eventbridge-lambda-cdk","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fs3-eventbridge-lambda-cdk","serverless-patterns\u002Fs3-eventbridge-lambda-cdk","cdk\u002Fstack\u002Fs3-eventbridge-lambda-stack.ts",{"headline":26,"text":27},"How it works",[28,29,30,31],"This pattern contains a sample AWS Cloud Development Kit (AWS CDK) template for creating an AWS S3 bucket with AWS EventBridge notifications turned on","All S3 events in this bucket is sent to AWS EventBridge","This CDK template also deploys a AWS Lambda function which will process the event sent to AWS EventBridge and create a tag for the S3 object that was created","An EventBridge rule is also created to send only the Object Created event of the bucket to the Lambda function","TypeScript","200",{},{"icon1":36,"icon2":41,"icon3":44,"line1":48,"line2":52},{"x":37,"y":38,"service":39,"label":40},20,50,"s3","Amazon S3",{"x":38,"y":38,"service":42,"label":43},"eventbridge","Amazon EventBridge",{"x":45,"y":38,"service":46,"label":47},80,"lambda","AWS Lambda",{"from":49,"to":50,"label":51},"icon1","icon2","Event",{"from":50,"to":53,"label":51},"icon3",{"headline":55,"bullets":56},"Additional resources",[57,60,63,66],{"text":58,"link":59},"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":61,"link":62},"Use Amazon EventBridge to Build Decoupled, Event-Driven Architectures","https:\u002F\u002Fserverlessland.com\u002Flearn\u002Feventbridge",{"text":64,"link":65},"AWS S3 Event Notifications with EventBridge","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Faws\u002Fnew-use-amazon-s3-event-notifications-with-amazon-eventbridge\u002F",{"text":67,"link":68},"Using EventBridge with S3","https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002FEventBridge.html","patterns\u002Fs3-eventbridge-lambda-cdk",{"text":71},[72],"See the GitHub repo for detailed testing instructions.","CRPD6rTzkSnAIRbYKIXz1dMgiARhS8vA5r0eghs8jNs",1779100523192]