You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,13 @@
1
1
# Build AWS Lambda Layer zip file for Python Dependancies
2
2
3
-
Creates an AWS Lambda Layers **optimized**zip file using the [Lambda Layer directory structure](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html#configuration-layers-path), ensures compiled libraries are compatible with Lambda environment, and optimized to reduce file size.
3
+
Creates an AWS Lambda Layers zip file that is **optimized**for: [Lambda Layer directory structure](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html#configuration-layers-path), compiled library compatibility, and minimal file size.
4
4
5
5
This function was created to address these issues:
6
6
7
-
- Many methods of creating Lambda zip files for Python functions don't work for Lambda Layers because Lambda Layers require specific library paths within the zip
8
-
- Some dependancies required compiled components, which requires that the zip is created in an environment that matches the Lambda runtime environment
9
-
- Minimize the zip size by removing unnecessary items
7
+
- Many methods of creating Lambda zip files for Python functions don't work for Lambda Layers
8
+
- This is due to the fact Lambda Layers require specific library paths within the zip, where regular Lambda zips dont
9
+
- Compiled dependancies must be created in an environment that matches the Lambda runtime
10
+
- Reduce size of zip file by removing unnecessary libraries and files
10
11
11
12
**Note: This script requires Docker and uses a container to mimic the Lambda environment.**
0 commit comments