Sun Sep 26 2021·2 min read
Photo by Krists Luhaers
To download the code for a Lambda function:
Actionsbutton and click
Download deployment packageon the popup screen
.zipfile and you will find the code for the lambda function
Windowsthe file might not have the
.zipextension, in fact it might not have any extension. If it doesn't you have to add it yourself.
When you're downloading the source code for a lambda function, check whether the function has layers.
To see if a lambda function has layers, select the
Code tab of the function
and scroll down until you see the
If your function has layers, you have to download the layer code as well.
In the screenshot above the function has a layer named
yupFCE70298 with the
In this case we have to open the layers page from the sidebar and filter for the layer by its name:
Click on the layer's name and scroll down to the
All versions section. Click
on the version number that corresponds to your function's layer version.
Finally, click on the
Extract the zip file and add the lambda layer to your layers directory.
I'll send you 1 email a week with links to all of the articles I've written that week