Get startedGet started for free

Adding a lambda layer

1. Adding a lambda layer

When we try to use pandas, without a layer, we get an error. Let's give our function pandas powers. First, let's download that AWS data wrangler layer. Go to the AWS data wrangler repo, tags, releases, and then download the Python 3.8 release. Go back to Lambda, then layers to list available layers. There's no layers available to us yet. Let's create a layer. Let's call it awsDataWrangler, and we're gonna upload the zip file that we just got from GitHub, and we're gonna pick Python 3.8 as the runtime. Go back to your function once the upload is completed. Select layers, add a layer. From custom layers, select awsDataWrangler, the latest version, click add. If we test the function now, we'll no longer get an error. Using the layer, we gave our function pandas powers.

2. Let's practice!

Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.