hands-on lab

Configuring AWS Lambda Layers

Difficulty: Intermediate
Duration: Up to 1 hour
Students: 132
Rating: 5/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

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:

Environment before

Environment after

Covered topics

Lab steps

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