[{"data":1,"prerenderedAt":72},["ShallowReactive",2],{"pattern-s3-cloudtrail-eventbridge":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":29,"language":35,"level":36,"meta":37,"patternArch":38,"resources":56,"s3URL":6,"services":65,"stem":66,"testing":67,"videoId":28,"__hash__":71},"patterns\u002Fpatterns\u002Fs3-cloudtrail-eventbridge.json","Amazon S3 to AWS CloudTrail to Amazon EventBridge",null,{"headline":8,"text":9},"Cleanup",[10,11],"1. Delete the stack: \u003Ccode>sam delete --stack-name STACK_NAME\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>",[13],"content\u002Fcontributors\u002Fjyoti-rathi.json",{"text":15},[16],"sam deploy --guided","Creates a CloudTrail that routes S3 events to EventBridge","json","AWS SAM",{"template":21,"payloads":26},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"s3-eventbridge","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fs3-eventbridge","serverless-patterns\u002Fs3-eventbridge","template.yaml",[27],{"headline":28,"payloadURL":28},"",{"headline":30,"text":31},"How it works",[32,33,34],"This pattern sends Amazon S3 events to Amazon EventBridge using AWS CloudTrail. The EventBridge event is sent to SQS for monitoring.","Data events are not logged by default. To record CloudTrail data events, supported resources or resource types have to be explicitly added (see the GitHub repo for additional context).","Note that from December 2021, S3 now publishes events directly to EventBridge - this pattern is provided as an alternative approach.","Integration","200",{},{"icon1":39,"icon2":44,"icon3":47,"line1":51,"line2":54},{"x":40,"y":41,"service":42,"label":43},20,50,"s3","Amazon S3",{"x":41,"y":41,"service":45,"label":46},"cloudtrail","CloudTrail",{"x":48,"y":41,"service":49,"label":50},80,"eventbridge","EventBridge",{"from":52,"to":53,"label":28},"icon1","icon2",{"from":53,"to":55,"label":28},"icon3",{"headline":57,"bullets":58},"Additional resources",[59,62],{"text":60,"link":61},"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":63,"link":64},"Use Amazon EventBridge to Build Decoupled, Event-Driven Architectures","https:\u002F\u002Fserverlessland.com\u002Flearn\u002Feventbridge",{"from":42,"to":49},"patterns\u002Fs3-cloudtrail-eventbridge",{"headline":68,"text":69},"Testing",[70],"See the GitHub repo for detailed testing instructions.","5hrpw3P_8AToHrCDAyhTriswmxfBI25ezfKrNFSGVfc",1779273338423]