[{"data":1,"prerenderedAt":40},["ShallowReactive",2],{"repo-aws-lambda-layers-aws-sam-examples":3},{"id":4,"title":5,"contributors":6,"date":8,"description":9,"diagram":10,"extension":11,"framework":12,"gitHub":14,"introBox":17,"language":24,"meta":26,"resources":27,"services":33,"simplicity":35,"stem":36,"type":37,"usecase":38,"__hash__":39},"repos\u002Frepos\u002Faws-lambda-layers-aws-sam-examples.json","Lambda Layers with AWS SAM",[7],"content\u002Fcontributors\u002Fjames-beswick.json","2023-02-03","Build and deploy Lambda Layers with SAM.","\u002Fassets\u002Fimages\u002Frepos\u002Faws-lambda-layers-aws-sam-examples.jpg","json",[13],"AWS SAM",{"template":15},{"repoURL":16},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Faws-lambda-layers-aws-sam-examples",{"headline":18,"text":19},"Creating AWS Lambda Layers using Node.js and AWS SAM",[20,21,22,23],"Serverless developers frequently import libraries and dependencies into their AWS Lambda functions. While you can zip these dependencies as part of the build and deployment process, in many cases it’s easier to use layers instead. In this repo, I explain how layers work, and how you can build and include layers in your own applications.","A Lambda layer is an archive containing additional code, such as libraries, dependencies, or even custom runtimes. When you include a layer in a function, the contents are extracted to the \u002Fopt directory in the execution environment. You can include up to five layers per function, which count towards the standard Lambda deployment size limits.","Layers are deployed as immutable versions, and the version number increments each time you publish a new layer. When you include a layer in a function, you specify the layer version you want to use. Layers are automatically set as private, but they can be shared with other AWS accounts, or shared publicly. Permissions only apply to a single version of a layer.","Using layers can make it faster to deploy applications with the AWS Serverless Application Model (AWS SAM) or the Serverless framework. By moving runtime dependencies from your function code to a layer, this can help reduce the overall size of the archive uploaded during a deployment.",[25],"Node.js",{},{"headline":28,"bullets":29},"Additional resources",[30],{"text":31,"link":32},"Blog: Using Lambda layers to simplify your development process","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fusing-lambda-layers-to-simplify-your-development-process\u002F",[34],"lambda-event-functions","100","repos\u002Faws-lambda-layers-aws-sam-examples","Examples","Backend","tb5JYkF7VUziu-A-ljpD5Fq4dwBkGtSYJcKQTxcOo1k",1792578864695]