In this example I am creating a simple zip file with a single Python pip package, xlrd. Including the whole virtualenv can easily lead to the 3MB size being exceeded, so this procedure avoids using the virtualenv altogether. You can still use the console to invoke your Lambda function. If the size of your Lambda function’s zipped deployment packages exceeds 3MB, you will not be able to use the inline code editing feature in the Lambda console. ![]() Meanwhile, the AWS Lambda limits are documented here. That is no doubt because the Amazon documentation also talks about zipping up a virtualenv. ![]() ![]() I found this post at codeburst.io by Alexandra Johnson quite useful, although in the end it created a zip file that was very large due to inclusion of the whole virtualenv, and actually involved more steps than required. Note about virtualenv and large zip files Right click with your mouse or tap with two fingers on your trackpad on. Navigate to the file or folder you want to compress. Workaround for Homebrew’s Python on Mac OS X Launch the Finder app from your Dock, Launcher, or Spotlight Search. ![]()
0 Comments
Leave a Reply. |