From the course: AWS Certified Developer - Associate (DVA-C02) Cert Prep

Unlock this course with a free trial

Join today to access over 24,600 courses taught by industry experts.

AWS Lambda layers

AWS Lambda layers

- [Instructor] In the last section, we've seen how custom dependencies can be included in a function handler. And we did this by bundling our application code together with all of its dependencies in a single deployment package. This method gets the job done, but it has some drawbacks. First, deploying multiple Lambda functions that rely on the same dependencies is inefficient and would just make the total code size of your functions unnecessarily large. Second, updating those dependencies on each function would take time and can slow down the development process. Imagine having five Lambda functions that contain the same external libraries, but work on separate tasks. Sooner or later, you'd eventually have to update those libraries so you could provide your function with better security control, makes your code more performance, or so you can enjoy its latest features. But in order to do that, you need to create a package for each function and deploy them again to AWS Lambda. In this…

Contents