Zappa covers each and every deployment process. Let's have a detailed discussion regarding the deployment flow with Zappa.
Once you are done with initializing Zappa, then you can deploy the application on to the production
stage in a single command, as shown in the following code snippet:
$ zappa deploy production . . . Deployment complete ! https://071h4br4e0.execute-api.ap-south-1.amazonaws.com/production
When you call the $ zappa deploy
command, Zappa performs some tasks to complete the deployment. The following is the internal flow and process of Zappa regarding deployment:
- Compress the application code in your local environment into a ZIP archive by replacing any dependencies with versions in a precompiled Lambda package.
- Set up the Lambda
handler
function with the required WSGI middleware based on your application's type. - Upload the generated archive from the preceding two steps into the Amazon S3 bucket.
- Create and manage the necessary AWS IAM policies and roles...