Skip to Main Content
Building Serverless Python Web Services with Zappa
book

Building Serverless Python Web Services with Zappa

by Abdulwahid Abdulhaque Barguzar
July 2018
Intermediate to advanced content levelIntermediate to advanced
324 pages
8h 14m
English
Packt Publishing
Content preview from Building Serverless Python Web Services with Zappa

Deploying with Zappa

To configure Zappa, you should run the zappa init command and follow the auto-generated questionnaire. I followed the default suggested settings, and so the following is the auto-generated zappa_settings.json file.

File—zappa_settings.json:

{    "dev": {        "app_function": "resources.api",        "profile_name": "default",        "project_name": "chapter11",        "runtime": "python3.6",        "s3_bucket": "zappa-ss0sm7k4r"    }}

That's it. Now, with the help of this configuration, you can perform the deployment as mentioned in the following log snippet:

$ zappa deploy devCalling deploy for stage dev..Creating chapter11-dev-ZappaLambdaExecutionRole IAM Role..Creating zappa-permissions policy on chapter11-dev-ZappaLambdaExecutionRole IAM Role.Downloading ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Docker for Microservices with Python

Hands-On Docker for Microservices with Python

Jaime Buelta

Publisher Resources

ISBN: 9781788837613Supplemental Content