[{"data":1,"prerenderedAt":77},["ShallowReactive",2],{"pattern-apigw-rest-api-eventbridge-sqs-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":16,"extension":17,"framework":18,"gitHub":19,"highlight":6,"introBox":25,"language":31,"level":32,"meta":33,"patternArch":34,"resources":57,"s3URL":6,"services":6,"stem":72,"testing":73,"videoId":6,"__hash__":76},"patterns\u002Fpatterns\u002Fapigw-rest-api-eventbridge-sqs-cdk.json","Amazon API Gateway REST API to Amazon EventBridge to Amazon SQS fanout",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fpatrick-meiler.json",{"text":13},[14,15],"cd cdk","cdk deploy","Routes from Amazon API Gateway REST API to SQS via EventBridge.","json","AWS CDK",{"template":20},{"repoURL":21,"templateURL":22,"projectFolder":23,"templateFile":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-rest-api-eventbridge-sqs-fanout-cdk","serverless-patterns\u002Fapigw-rest-api-eventbridge-sqs-fanout-cdk","apigw-rest-api-eventbridge-sqs-fanout-cdk","cdk\u002Fapp.py",{"headline":26,"text":27},"How it works",[28,29,30],"This pattern creates an Amazon API gateway REST API endpoint. The endpoint uses service integrations to directly connect to Amazon EventBridge.","A rule evaluates whether the event should be sent to two distinct SQS queues.","This fanout pattern uses EventBridge with SQS targets.","Python","300",{},{"icon1":35,"icon2":40,"icon3":43,"icon4":48,"line1":50,"line2":53,"line3":55},{"x":36,"y":37,"service":38,"label":39},20,50,"apigw","API Gateway",{"x":37,"y":37,"service":41,"label":42},"eventbridge","EventBridge",{"x":44,"y":45,"service":46,"label":47},80,30,"sqs","SQS queue",{"x":44,"y":49,"service":46,"label":47},70,{"from":51,"to":52},"icon1","icon2",{"from":52,"to":54},"icon3",{"from":52,"to":56},"icon4",{"headline":58,"bullets":59},"Additional resources",[60,63,66,69],{"text":61,"link":62},"Build an API Gateway REST API with AWS integration","https:\u002F\u002Fdocs.aws.amazon.com\u002Fapigateway\u002Flatest\u002Fdeveloperguide\u002Fgetting-started-aws-proxy.html",{"text":64,"link":65},"Amazon EventBridge","https:\u002F\u002Fdocs.aws.amazon.com\u002Feventbridge\u002Flatest\u002Fuserguide\u002Feb-what-is.html",{"text":67,"link":68},"Amazon EventBridge PutEvents","https:\u002F\u002Fdocs.aws.amazon.com\u002Feventbridge\u002Flatest\u002FAPIReference\u002FAPI_PutEvents.html",{"text":70,"link":71},"Amazon EventBridge Targets","https:\u002F\u002Fdocs.aws.amazon.com\u002Feventbridge\u002Flatest\u002Fuserguide\u002Feb-targets.html","patterns\u002Fapigw-rest-api-eventbridge-sqs-cdk",{"text":74},[75],"See the GitHub repo for detailed testing instructions.","08hHLNiL0hZLoMSYPnhGtYJngOVYe6gJWszWIcx1Z4Q",1779273332934]