Configuring AWS Lambda Layers

Lab Steps

lock
Logging in to the Amazon Web Services Console
lock
Creating a Python Lambda Layer
lock
Configuring an AWS Lambda Function Layer using AWS SAM

Ready for the real environment experience?

DifficultyIntermediate
Time Limit1h
Students46
Ratings
5/5
starstarstarstarstar

Description

AWS Lambda Layers are .zip file archives that can contain additional code or data to be used by your Lambda functions. These file archives can contain libraries, custom runtimes, data, or configuration files that can be used by your Lambda function.

AWS Lambda Layers provide the following benefits:

  • Smaller code packages
  • Quicker iteration on business logic and code deployments
  • Promotes code sharing and reusability
  • Separation of main function code and its dependencies

In this lab, you will walk through the process of creating two Lambda layers. The first layer will be a Python layer created using the AWS CLI and the AWS console. The second layer will be a Node.js layer that will be defined and deployed using the AWS Serverless Application Model (SAM) CLI.

Learning Objectives

Upon completion of this intermediate-level lab, you will be able to:

  • Configure a Python AWS Lambda Layer in the AWS Console
  • Configure a Node.js AWS Lambda Layer using AWS Serverless Application Model (SAM)

Intended Audience

  • Candidates for the AWS Certified Developer - Associate Certification
  • Cloud Architects
  • Software Engineers
  • Serverless Developers

Prerequisites

Familiarity with the following will be beneficial but is not required:

  • AWS Lambda
  • AWS Serverless Application Model

The following content can be used to fulfill the prerequisite:

Updates

March 13th, 2023 - Enabled autosave in the lab's browser IDE

Environment before
PREVIEW
arrow_forward
Environment after
PREVIEW
About the Author
Students22969
Labs74
Learning paths3

Jun is a Cloud Labs Developer with previous experience as a Software Engineer and Cloud Developer. He holds the AWS Certified Solutions Architect and DevOps Engineer Professional certifications. He also holds the AWS Certified Solutions Architect, Developer, and SysOps Administrator Associate certifications. 

Jun is focused on giving back to the growing cloud community by sharing his knowledge and experience with students and creating engaging content.