[{"data":1,"prerenderedAt":82},["ShallowReactive",2],{"pattern-eventbridge-api-destinations-mongodb":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":27,"language":35,"level":36,"meta":37,"patternArch":38,"resources":61,"s3URL":6,"services":6,"stem":76,"testing":77,"videoId":6,"__hash__":81},"patterns\u002Fpatterns\u002Feventbridge-api-destinations-mongodb.json","Amazon EventBridge API Destinations configuration for MongoDB",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\u002Fcamilla-somtakoune.json",{"text":15},[16,17],"cd .\u002F4-mongodb","sam deploy --guided","Create an EventBridge rule and API destination to route events to MongoDB","json","AWS SAM",{"template":22},{"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","4-mongodb\u002FmongoDB.yaml",{"headline":28,"text":29},"How it works",[30,31,32,33,34],"This pattern creates an API Destination for the MongoDB API. Once deployed, the pattern allows user to send events easily through Event Bridge to MongoDB to write data into database. The pattern creates the following resources: Event Bridge Bus, Event Bridge Connection, Event Bridge API Destination, Event Bridge Rule, IAM Role, and SQS Queue.","The EventBridge rule uses the API Destination and Connection as a target, SQS Queue as a DLQ, and the IAM role as its role. To send events go to the bus and send sample events. To create a ticket enter “MyTestMessage” for the detail type, “MyTestApp” for the source, the bus created by the pattern for the Event Bus Name, and any call that follows the format for the MongoDB API as detail (https:\u002F\u002Fdocs.mongodb.com\u002Frealm\u002Fendpoints\u002F).","The following information is needed to use the pattern: MongoDB Api-Key and Password: To create the AUTH for the Event Bridge Connection.","The IAM Role created by the pattern only has the permission to allow InvokeApiDestination access to the EventBridge Rule.","To work the user must have Password Access enabled in MongoDB (https:\u002F\u002Fdocs.mongodb.com\u002Frealm\u002Fauthentication\u002Fapi-key\u002F)","YAML","100",{},{"icon1":39,"group":44,"icon2":48,"icon3":51,"line1":55,"line2":59},{"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":58},"icon1","icon2","",{"from":57,"to":60,"label":58},"icon3",{"headline":62,"bullets":63},"Additional resources",[64,67,70,73],{"text":65,"link":66},"Using API destinations with Amazon EventBridge","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fusing-api-destinations-with-amazon-eventbridge\u002F",{"text":68,"link":69},"Use Amazon EventBridge to Build Decoupled, Event-Driven Architectures","https:\u002F\u002Fserverlessland.com\u002Flearn\u002Feventbridge",{"text":71,"link":72},"MongoDB APIs documentation","https:\u002F\u002Fdocs.atlas.mongodb.com\u002Fapi\u002F",{"text":74,"link":75},"MongoDB HTTPS endpoints","https:\u002F\u002Fdocs.mongodb.com\u002Frealm\u002Fendpoints\u002F","patterns\u002Feventbridge-api-destinations-mongodb",{"headline":78,"text":79},"Testing",[80],"See the GitHub repo for detailed testing instructions.","ru136EalkmFJ0O9PSNQzt7XYvqCZK16FQWeRTryLzOM",1778927707413]