[{"data":1,"prerenderedAt":77},["ShallowReactive",2],{"pattern-apigw-lambda-rds-snapstart":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":30,"level":31,"meta":32,"patternArch":33,"resources":57,"s3URL":6,"services":71,"stem":72,"testing":73,"videoId":6,"__hash__":76},"patterns\u002Fpatterns\u002Fapigw-lambda-rds-snapstart.json","REST API with Amazon API Gateway, Amazon RDS and AWS Lambda with SnapStart",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk destroy --all\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fmark-sailes.json",{"text":13},[14],"cdk deploy --all","A pattern to show how to use Lambda SnapStart with relational databases.","json","AWS CDK",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fapigw-lambda-rds-snapstart","serverless-patterns\u002Fapigw-lambda-rds-snapstart","apigw-lambda-rds-snapstart","infrastructure\u002Fcdk\u002Fsrc\u002Fmain\u002Fjava\u002Fcom\u002Funicorn\u002FUnicornStoreStack.java",{"headline":25,"text":26},"How it works",[27,28,29],"CDK creates all the infrastructure we need for the pattern, include the VPC, subnets, security groups,secrets and the DB.","The DB setup Lambda function is executed once to create the database table with a given structure.","This REST API is implemented with the Micronaut framework. Credentials for the DB are passed as environment variables to the application.","Java","300",{},{"group1":34,"icon1":40,"icon2":45,"icon3":48,"line1":52,"line2":55},{"x":35,"y":36,"w":37,"h":38,"label":39},26,15,72,70,"VPC",{"x":41,"y":42,"service":43,"label":44},13,50,"apigw","REST API",{"x":42,"y":42,"service":46,"label":47},"lambda","AWS Lambda",{"x":49,"y":42,"service":50,"label":51},88,"aurora","RDS Postgres",{"from":53,"to":54},"icon1","icon2",{"from":54,"to":56},"icon3",{"bullets":58},[59,62,65,68],{"text":60,"link":61},"Lambda SnapStart Developer Guide","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fsnapstart.html",{"text":63,"link":64},"re:Invent Video - AWS Lambda SnapStart (SVS320)","https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=ZbnAithBNYY",{"text":66,"link":67},"Micronaut","https:\u002F\u002Fmicronaut.io\u002F",{"text":69,"link":70},"Micronaut CRaC Reference","https:\u002F\u002Fmicronaut-projects.github.io\u002Fmicronaut-crac\u002Flatest\u002Fguide\u002F",{"from":43,"to":46},"patterns\u002Fapigw-lambda-rds-snapstart",{"text":74},[75],"See the README in the GitHub repo for detailed testing instructions.","omsN4WAkqFsaDL8XkEjY7O50I40N7SHl3l5hYiKscXs",1782470137894]