CloudFormation Custom Resrouce to build Lambda layers for python scripts based on the requirements.txt and/or custom raw python scripts
note: the lambda function with comments, and doc strings is also in the repo
under the name of lambda_function.py
but into the CFN it's lifted in without
doc strings, due to size limit.
- Step 1
Go to your AWS Console, and open CloudFormation
- Step 2
Deploy the CFN-CR-PythonLambdaLayer.yaml
template
- Step 3
As per in the examples in the CFN-CR-PythonLambdaLayer-SampleUsage.yaml create your own layer as you need
- Step 4
Enjoy, and if you find issues, send it here
Contributions are welcome.