1

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?

2

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.