sample AWS Lambda package for running AWS Command Line Interface
main.pyas you like
- update package
zip -r9 lambda.zip main.py
- deploy package and choose runtime "Python 2.7", set Handler "main.handle"
If the execution environment of AWS Lambda changes, this package may not work.
(For example, this package assumes that
This package created on Amazon Linux(
For the creation commands, refer to the following. https://alestic.com/2016/11/aws-lambda-awscli/
on Amazon Linux, you'll need following 2 steps.
- install libyaml-devel for PyYAML
sudo yum install libyaml-devel
lib64library into package
(cd $virtualenv/lib64/python2.7/site-packages; zip -r9 $zipfile .)