Building Serverless Python Web Services with Zappa
上QQ阅读APP看书,第一时间看更新

Building the deployment package

Let's initialize Zappa using the zappa init command. This command helps you to create and deploy Python applications. This command runs in a user interactive mode with some basic questions required so that we can set up the deployment process.

By the end of the questionnaire, Zappa creates a JSON file named zappa_settings.json. This file is nothing but the backbone of Zappa as it maintains the mapping information that's used by Zappa internally.

We will discuss the Zappa init command process in detail in a few moments. Before that, just have a look at following screenshot, which describes the flow of the zappa init command:

As you can see, zappa init starts up user interactive mode with some questions. Let's look at some information about each question.