Zappa configuration is straightforward. The Zappa package is available in the pip repository as well. But we are going to install it with pipenv, which helps us to keep track of the version management. The following is the command you will need to install Zappa:
$ pipenv install zappa
After the Zappa installation, you will need to initialize Zappa with the command zappa init
. This command will prompt a shell questioner to configure Zappa with the required, basic information. Let's have a look at the next section, where we will discuss Zappa's basic configuration.
Once you are done with the zappa init
command, Zappa creates a zappa_settings.json
file. This file contains the configuration information, which is required to perform the deployment. The following is the code snippet of the zappa_settings.json
file:
{ "dev": { "aws_region": "ap-south-1", "django_settings": "imageGalleryProject...