We are done with development, and now it's time to deploy the app as serverless in AWS Lambda. We already described the prerequisites to configure Zappa and its associated configuration in the preceding chapter, so here I assume that you have a configured Zappa along with an AWS configuration.
Once you have configured Zappa, you can initialize Zappa for your project. You need to run the zappa init
command and follow the CLI questionnaire to configure your project with Zappa. I followed the default configuration settings suggested by Zappa. The zappa init
command will generate the zappa_settings.json
file, and we are free to modify this file as per our needs.
The following is a code snippet of the zappa_settings.json
file.
File—zappa_settings.json
:
{ "dev": { "app_function": "run.app", "aws_region": "ap-south-1", "profile_name": "default", "project_name": "chapter-4", "runtime...