[{"data":1,"prerenderedAt":66},["ShallowReactive",2],{"pattern-eventbridge-cloudwatch-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":13,"deploy":15,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":30,"language":34,"level":35,"meta":36,"patternArch":37,"resources":50,"s3URL":6,"services":59,"stem":60,"testing":61,"videoId":29,"__hash__":65},"patterns\u002Fpatterns\u002Feventbridge-cloudwatch-cdk.json","Amazon EventBridge to Amazon CloudWatch Logs",null,{"headline":8,"text":9},"Cleanup",[10,11,12],"1. Delete the stack: \u003Ccode>npx cdk destroy\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>.","3. You see a message confirming DELETE_COMPLETE.",[14],"content\u002Fcontributors\u002Fshehryar-abbasi.json",{"text":16},[17],"See the GitHub repo for detailed deployment instructions.","Create an EventBridge rule that sends events to CloudWatch Logs","json","AWS CDK",{"template":22,"payloads":27},{"projectFolder":23,"repoURL":24,"templateURL":25,"templateFile":26},"eventbridge-cloudwatch-cdk","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Feventbridge-cloudwatch-cdk","serverless-patterns\u002Feventbridge-cloudwatch-cdk","cdk\u002Fapp.py",[28],{"headline":29,"payloadURL":29},"",{"headline":31,"text":32,"test":29},"How it works",[33],"This project contains a sample AWS CDK template to create an EventBridge Rule, as well as, a CloudWatch Logs Group. The EventBridge Rule publishes matched events to CloudWatch Logs. In this example, the rule filters for specific attributes in the event before sending to the CloudWatch Logs target. Note: CDK may automatically create a Custom Resource Lambda to set certain policy configurations for CloudWatch Logs.","Python","100",{},{"icon1":38,"icon2":43,"line1":47},{"x":39,"y":40,"service":41,"label":42},20,50,"eventbridge","EventBridge",{"x":44,"y":40,"service":45,"label":46},80,"cloudwatch","CloudWatch Logs",{"from":48,"to":49,"label":29},"icon1","icon2",{"headline":51,"bullets":52},"Additional resources",[53,56],{"text":54,"link":55},"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":57,"link":58},"Use Amazon EventBridge to Build Decoupled, Event-Driven Architectures","https:\u002F\u002Fserverlessland.com\u002Flearn\u002Feventbridge",{"from":41,"to":45},"patterns\u002Feventbridge-cloudwatch-cdk",{"headline":62,"text":63},"Testing",[64],"See the GitHub repo for detailed testing instructions.","8UkGkrjJu7wQtzAYW4071dpgv1B5anyhzNsrR4pFuwE",1778846884454]