- Building Serverless Python Web Services with Zappa
- Abdulwahid Abdulhaque Barguzar
- 170字
- 2021-07-16 18:16:17
Configuring with Zappa
In order to configure Zappa, it's required that you have Zappa installed, as mentioned in the previous chapter. Zappa provides the zappa init command, which enables a user interactive mode initialization so that we can configure the Python application.
I followed the default configuration settings that were suggested by the zappa init command. This generates the zappa_settings.json file, which is the backbone for configuring any Python application with Zappa.
Here is the content of the zappa_settings.json file:
{
"dev": {
"app_function": "hello_world.app",
"aws_region": "ap-south-1",
"profile_name": "default",
"project_name": "flask-todo",
"runtime": "python3.6",
"s3_bucket": "zappa-yrze3w53y"
}
}
Now, during initialization, Zappa has the ability to identify the type of your Python application and generate the set attributes accordingly. In our case, Zappa detected the Python program as a Flask application. Hence, it asked for the Flask instance path, which we initialized as app = Flask(__name__) in the hello_world.py file.
Now that the Zappa configuration has been completed as per our basic needs, it's time to deploy it on AWS Lambda.
- 網絡教育學習指導
- 高校網絡道德教育研究
- 物聯網安全(原書第2版)
- 萬物互聯:蜂窩物聯網組網技術詳解
- Web Application Development with R Using Shiny
- Unity Artificial Intelligence Programming
- Echo Quick Start Guide
- 紅藍攻防:構建實戰化網絡安全防御體系
- Getting Started with Memcached
- 大型企業微服務架構實踐與運營
- 物聯網的機遇與利用
- Hands-On Docker for Microservices with Python
- 人際網絡
- 網絡是怎樣連接的
- Hands-On Full Stack Web Development with Aurelia