Deploying the application with Zappa
Now we have got to a very interesting section of the chapter. We are going to deploy the Flask app that we created using a tool called Zappa (https://github.com/Miserlou/Zappa). Zappa is a tool developed in Python (by Rich Jones, the principal author of Zappa) that makes it very easy to build and deploy serverless Python applications.
The installation is pretty straightforward. Within the virtual environment that we have been using to develop this project, you can just run the pipenv
command:
pipenv install zappa
After the installation, you can start the configuration. You just need to make sure that you have a valid AWS account and the AWS credentials file is in place. If you followed this chapter from the beginning and installed and configured the AWS CLI you should be all set.
To configure Zappa for our project you can run:
zappa init
You will see the ASCII Zappa logo (very beautiful BTW), and it will start asking some questions. The first one is:
Your Zappa...