[{"data":1,"prerenderedAt":73},["ShallowReactive",2],{"pattern-ta-eventbridge-lambda-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":36,"level":37,"meta":38,"patternArch":39,"resources":57,"s3URL":6,"services":66,"stem":67,"testing":68,"videoId":29,"__hash__":72},"patterns\u002Fpatterns\u002Fta-eventbridge-lambda-cdk.json","Trusted Advisor to Amazon EventBridge to AWS Lambda",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\u002Fsean-kendall.json",{"text":16},[17],"See the GitHub repo for detailed deployment instructions.","Create an EventBridge rule that invokes a Lambda function from Trusted Advisor","json","AWS CDK",{"template":22,"payloads":27},{"projectFolder":23,"repoURL":24,"templateURL":25,"templateFile":26},"ta-eventbridge-lambda-s3","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fta-eventbridge-lambda-s3","serverless-patterns\u002Fta-eventbridge-lambda-s3","s3_bucket_privatizer\u002Fs3_bucket_privatizer_stack.py",[28],{"headline":29,"payloadURL":29},"",{"headline":31,"text":32},"How it works",[33,34,35],"This pattern utilizes AWS Trusted Advisor to execute an AWS Lambda Function via Amazon EventBridge, to remove public access to an S3 bucket once it has been flagged as public.","Incorrectly configured S3 buckets can be the source of a data leak in your organization. This serverless pattern helps to automate the lock-down of your S3 buckets to prevent any accidental data leaks.","If an S3 bucket meets the use-case for being open to the public, simply \"Exclude & Refresh\" the specific resource in the AWS Trusted Advisor Console and they will be ignored.","Python","200",{},{"icon1":40,"icon2":45,"icon3":48,"line1":52,"line2":55},{"x":41,"y":42,"service":43,"label":44},20,50,"trusted-advisor","AWS Trusted Advisor",{"x":42,"y":42,"service":46,"label":47},"eventbridge","EventBridge",{"x":49,"y":42,"service":50,"label":51},80,"lambda","AWS Lambda",{"from":53,"to":54,"label":29},"icon1","icon2",{"from":54,"to":56,"label":29},"icon3",{"headline":58,"bullets":59},"Additional resources",[60,63],{"text":61,"link":62},"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":64,"link":65},"Use Amazon EventBridge to Build Decoupled, Event-Driven Architectures","https:\u002F\u002Fserverlessland.com\u002Flearn\u002Feventbridge",{"from":46,"to":50},"patterns\u002Fta-eventbridge-lambda-cdk",{"headline":69,"text":70},"Testing",[71],"See the GitHub repo for detailed testing instructions.","a0Q61UsoCKb_4Y29U52thvLm9rY0OqU9cyjFUludGQs",1778846888494]