[{"data":1,"prerenderedAt":60},["ShallowReactive",2],{"pattern-bedrock-lambda-nodejs":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":30,"level":31,"meta":32,"patternArch":33,"resources":47,"s3URL":6,"services":6,"stem":55,"testing":56,"videoId":6,"__hash__":59},"patterns\u002Fpatterns\u002Fbedrock-lambda-nodejs.json","AWS Lambda to Amazon Bedrock",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fgiuseppe-battista.json",{"text":13},[14,15],"sam build","sam deploy --guided","Connecting to Amazon bedrock from AWS Lambda using the Node.js SDK","json","AWS SAM",{"template":20},{"repoURL":21,"templateURL":22,"projectFolder":23,"templateFile":24},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fbedrock-lambda-nodejs","serverless-patterns\u002Fbedrock-lambda-nodejs","bedrock-lambda-nodejs","template.yml",{"headline":26,"text":27},"How it works",[28,29],"This pattern shows how to make use of Bedrock within a Lambda function on Node.js runtime.","The business logic is in \u003Ccode>.\u002Fsrc\u002Findex.js\u003C\u002Fcode>. You can use sample payloads stored in \u003Ccode>.\u002Fevents\u003C\u002Fcode> to test the function.","Node.js","200",{},{"icon1":34,"icon2":39,"line1":43},{"x":35,"y":36,"service":37,"label":38},20,50,"lambda","AWS Lambda",{"x":40,"y":36,"service":41,"label":42},80,"bedrock","Amazon Bedrock",{"from":44,"to":45,"label":46},"icon1","icon2","",{"bullets":48},[49,52],{"text":50,"link":51},"Learn more about Amazon Bedrock","https:\u002F\u002Faws.amazon.com\u002Fbedrock\u002F",{"text":53,"link":54},"Build Serverless Applications with Bedrock on FooBar","https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=P9Lnf4GMUsI&t=492s&ab_channel=FooBarServerless","patterns\u002Fbedrock-lambda-nodejs",{"text":57},[58],"See the GitHub repo for detailed testing instructions.","yW41fcOF7gR_HWgW6j36_qEeIn-cAQcEUndSyJD3e2I",1781519740028]