[{"data":1,"prerenderedAt":71},["ShallowReactive",2],{"pattern-lambda-bedrock-dynamodb-sam":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":11,"deploy":14,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":27,"language":34,"level":35,"meta":36,"patternArch":37,"resources":55,"s3URL":6,"services":6,"stem":66,"testing":67,"videoId":6,"__hash__":70},"patterns\u002Fpatterns\u002Flambda-bedrock-dynamodb-sam.json","Amazon Bedrock to Amazon DynamoDB",null,{"text":8},[9,10],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>","Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>",[12,13],"content\u002Fcontributors\u002Fsvvs-koudinya.json","content\u002Fcontributors\u002Fmonalisa-nath.json",{"text":15},[16,17],"sam build","sam deploy --guided","Invoke Amazon Bedrock with AWS Lambda and store results in Amazon DynamoDB.","json","AWS SAM",{"template":22},{"repoURL":23,"templateURL":24,"projectFolder":25,"templateFile":26},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fbedrock-dynamodb-sam-python","serverless-patterns\u002Flambda-bedrock-dynamodb-sam","lambda-bedrock-dynamodb-sam","template.yaml",{"headline":28,"text":29},"How it works",[30,31,32,33],"This pattern demonstrates processing queries with  AWS Lambda and Amazon Bedrock's Claude 3 Haiku model then storing the results in Amazon DynamoDB.","The Lambda function is invoked with an event containing a query, which is processed using Bedrock. Both the query and the response are stored in a DynamoDB table.","This patterns forms the basis of persisting the conversation of user and model in a NoSQL database","This pattern deploys one Lambda function, one DynamoDB table, and the necessary IAM roles and permissions.","Python","200",{},{"icon1":38,"icon2":43,"icon3":46,"line1":50,"line2":53},{"x":39,"y":40,"service":41,"label":42},20,50,"lambda","AWS Lambda",{"x":40,"y":40,"service":44,"label":45},"bedrock","Amazon Bedrock",{"x":47,"y":40,"service":48,"label":49},80,"dynamodb","Amazon DynamoDB",{"from":51,"to":52},"icon1","icon2",{"from":52,"to":54},"icon3",{"bullets":56},[57,60,63],{"text":58,"link":59},"Amazon Bedrock - Foundation Models","https:\u002F\u002Faws.amazon.com\u002Fbedrock\u002F",{"text":61,"link":62},"AWS Lambda - Serverless Computing","https:\u002F\u002Faws.amazon.com\u002Flambda\u002F",{"text":64,"link":65},"Amazon DynamoDB - NoSQL Database Service","https:\u002F\u002Faws.amazon.com\u002Fdynamodb\u002F","patterns\u002Flambda-bedrock-dynamodb-sam",{"text":68},[69],"See the GitHub repo for detailed testing instructions.","jfRv0nBODoVOV0rsZbt5-OrxsyJo5NRQSeQt64nGm_A",1778846885869]