Creating deployment packages

Lambda functions that have external libraries as dependencies can be packaged as deployment packages and be uploaded into the AWS Lambda console. This is very similar to creating a virtual environment in Python. So in this section, we shall learn and understand the process of creating Python deployment for using in the Lambda functions. We shall try and understand the process of creating deployment packages in detail, as follows:

  1. Deployment packages are generally in the format of ZIP packages. The contents of the ZIP package is exactly the same as a normal library of any programming language. 
  2. The package structure should be such that the library folders and the function file are in the same destination or in ...

Get Building Serverless Applications with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.