[{"data":1,"prerenderedAt":78},["ShallowReactive",2],{"pattern-eventbridge-api-destinations":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":30,"language":35,"level":36,"meta":37,"patternArch":38,"resources":60,"s3URL":69,"services":70,"stem":71,"testing":72,"videoId":29,"__hash__":77},"patterns\u002Fpatterns\u002Feventbridge-api-destinations.json","Amazon EventBridge API Destinations configuration",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\u002Fjames-beswick.json",{"text":15},[16,17],"cd .\u002F1-webhook-site","sam deploy --guided","Create an EventBridge rule and API destination to route events to an external API","json","AWS SAM",{"template":22,"payloads":27},{"projectFolder":23,"repoURL":24,"templateURL":25,"templateFile":26},"eventbridge-api-destinations","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Feventbridge-api-destinations","serverless-patterns\u002Feventbridge-api-destinations","1-webhook-site\u002Ftemplate.yaml",[28],{"headline":29,"payloadURL":29},"",{"headline":31,"text":32,"test":29},"How it works",[33,34],"This pattern configures an EventRule rule that routes to an API Destinations target. It configures a Connection, which contains the authorization for the API endpoint, and the API, which contains the URL, http method, and other configuration information.","There are two examples in this repo - the first integrates with Webhook.site, an API debugging tool. The second integrates with Slack. See the GitHub repo for more information on deploying the Slack integration.","Node.js","100",{},{"icon1":39,"group":44,"icon2":48,"icon3":51,"line1":55,"line2":58},{"x":40,"y":41,"service":42,"label":43},20,50,"eventbridge","EventBridge rule",{"x":41,"y":40,"w":45,"h":46,"label":47},45,60,"API Destinations",{"x":46,"y":41,"service":49,"label":50},"eventbridge-connection.png","Connection",{"x":52,"y":41,"service":53,"label":54},85,"eventbridge-api.png","API",{"from":56,"to":57,"label":29},"icon1","icon2",{"from":57,"to":59,"label":29},"icon3",{"headline":61,"bullets":62},"Additional resources",[63,66],{"text":64,"link":65},"Using API destinations with Amazon EventBridge","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fusing-api-destinations-with-amazon-eventbridge\u002F",{"text":67,"link":68},"Use Amazon EventBridge to Build Decoupled, Event-Driven Architectures","https:\u002F\u002Fserverlessland.com\u002Flearn\u002Feventbridge","https:\u002F\u002Fda-public-assets.s3.amazonaws.com\u002Fpatterns\u002Feventbridge-api-destinations\u002Fcloudformation.yml",{"from":42,"to":42},"patterns\u002Feventbridge-api-destinations",{"headline":73,"text":74},"Testing",[75,76],"1. From a command line in this directory, send a test event to EventBridge simulating a \"Payment failed\" event: \u003Ccode>aws events put-events --entries file:\u002F\u002FtestEvent.json\u003C\u002Fcode>","2. In the Webhook.site example, the API call appears in the dashboard.","pn97rKRODyGrZi_1FFibKDSyvThzOwxfacpgCNJKFqc",1782124506660]