I am using a python script from github to run on AWS lambda. I realized that the import boto statements are not working while running inside lambda. Is there way to instruct lambda to load boto2 as well?
Asked
Active
Viewed 521 times
1
-
http://docs.aws.amazon.com/lambda/latest/dg/lambda-python-how-to-create-deployment-package.html – Mark B May 23 '17 at 15:21
-
Thank you, that just worked! – BBDG May 23 '17 at 17:28
1 Answers
2
OK, all I had to do was install boto using "pip install module-name -t /path/to/project-dir" per the docs: http://docs.aws.amazon.com/lambda/latest/dg/lambda-python-how-to-create-deployment-package.html
Then zipped the files needed for lambda and uploaded.

BBDG
- 365
- 4
- 11