[{"data":1,"prerenderedAt":80},["ShallowReactive",2],{"pattern-lambda-aurora":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":28,"language":33,"level":34,"meta":35,"patternArch":36,"resources":54,"s3URL":72,"services":73,"stem":74,"testing":75,"videoId":32,"__hash__":79},"patterns\u002Fpatterns\u002Flambda-aurora.json","Amazon Aurora Serverless to AWS Lambda",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\u002Fgreg-davis.json",{"text":15},[16],"sam deploy --guided","Creates a Lambda function with access to an Amazon Aurora Serverless DB cluster.","json","AWS SAM",{"template":21,"payloads":26},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"lambda-aurora-serverless","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Flambda-aurora-serverless","serverless-patterns\u002Flambda-aurora-serverless","template.yml",[27],{},{"headline":29,"text":30,"test":32},"How it works",[31],"This pattern creates an AWS Lambda function and an Amazon Aurora Serverless DB cluster with Data API and a Secrets Manager secret. The function creates an example table named \"music\", inserts a row with data from the event object, then returns the results of a select query. The function includes a role with read access to a specific secret in Secrets Manager and to execute a sql statement in a specific Aurora DB cluster.","","Node.js","200",{},{"icon1":37,"icon2":42,"icon3":45,"line1":49,"line2":52},{"x":38,"y":39,"service":40,"label":41},20,50,"lambda","AWS Lambda",{"x":39,"y":39,"service":43,"label":44},"icon-api","Data API",{"x":46,"y":39,"service":47,"label":48},80,"aurora","Aurora Serverless",{"from":50,"to":51,"label":32},"icon1","icon2",{"from":51,"to":53,"label":32},"icon3",{"headline":55,"bullets":56},"Additional resources",[57,60,63,66,69],{"text":58,"link":59},"Using the Data API for Aurora Serverless","https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonRDS\u002Flatest\u002FAuroraUserGuide\u002Fdata-api.html",{"text":61,"link":62},"Data API - ExecuteStatement","https:\u002F\u002Fdocs.aws.amazon.com\u002Frdsdataservice\u002Flatest\u002FAPIReference\u002FAPI_ExecuteStatement.html",{"text":64,"link":65},"Data API - ExecuteStatement Response Elements","https:\u002F\u002Fdocs.aws.amazon.com\u002Frdsdataservice\u002Flatest\u002FAPIReference\u002FAPI_ExecuteStatement.html#API_ExecuteStatement_ResponseElements",{"text":67,"link":68},"AWS Lambda - the Basics","https:\u002F\u002Fdocs.aws.amazon.com\u002Fwhitepapers\u002Flatest\u002Fserverless-architectures-lambda\u002Faws-lambdathe-basics.html",{"text":70,"link":71},"Lambda Function Handler","https:\u002F\u002Fdocs.aws.amazon.com\u002Fwhitepapers\u002Flatest\u002Fserverless-architectures-lambda\u002Fthe-handler.html","https:\u002F\u002Fda-public-assets.s3.amazonaws.com\u002Fpatterns\u002Flambda-aurora\u002Fcloudformation.yml",{"from":40,"to":40},"patterns\u002Flambda-aurora",{"headline":76,"text":77},"Testing",[78],"See the GitHub repo for detailed testing notes.","UGiwayo43rAejW0qzDDJDD6VGQnn1fSpihABOaR35kU",1781778920690]