Zappa is a Python tool to build and deploy server-less, event-driven Python applications (including, but not limited to, WSGI web apps) on AWS Lambda + API Gateway.
Questions tagged [zappa]
203 questions
2
votes
1 answer
Unable to exclude certain python libraries from zappa package
How do I correctly exclude certainly libraries (like torch, numpy...) from zappa package?
I tried setting the exclude parameter in zappa_settings.json but it doesn't seem like excluding these packages.
Below is my zappa_settings.json
{
"dev":…
![](../../users/profiles/11121821.webp)
jon
- 219
- 2
- 11
2
votes
1 answer
spacy with zappa showing error on AWS lambda
My API was working perfectly fine with AWS lambda using Zappa. But I need spacy for my code to run. The moment I install spacy==2.0.13 and update the zappa dev , the api stops working. It gives 502 error. Kindly help me regarding this. I have…
![](../../users/profiles/11361554.webp)
Niladri Paul
- 81
- 1
- 8
2
votes
0 answers
How to use custom lambda name instead of autogenerated one when deploying with zappa?
I have existing lambdas deployed to AWS and chose Zappa for further lambda deployments. The problem is that it doesn't seem to be a way of customising lambda name, I found nothing similar on their configuration docs. It would be a real pain to…
![](../../users/profiles/4095134.webp)
Dambre
- 195
- 1
- 12
2
votes
1 answer
How to upload files to S3 bucket from Django lambda deployment using Zappa?
I have a basic web application that allows users to upload files. There is no processing involved, I just need them to be stored in a specific Amazon S3 bucket. I have the application deployed using Zappa on AWS Lambda. The document upload…
![](../../users/profiles/11396255.webp)
Atrum
- 33
- 3
2
votes
1 answer
Error while deploying Tornado app to AWS Lambda
I am trying a simple "Hello World" to deploy a Python-Tornado app to AWS Lambda using Zappa.
The code for the same in app.py file is:
import tornado.ioloop
import tornado.web
class MainHandler(tornado.web.RequestHandler):
def get(self):
…
![](../../users/profiles/9460641.webp)
zinngg
- 942
- 2
- 10
- 24
2
votes
2 answers
Upload APNs certificate to AWS Lambda
I am using Django with Zappa to connect to serverless AWS Lambda. To get APNs (Apple Push Notification services) up and running, I originally had to upload my certificate file to the server, so that my backend can access it whenever it needs to. But…
![](../../users/profiles/8083096.webp)
Rony Azrak
- 277
- 1
- 4
- 14
2
votes
0 answers
Flask + Selenium application on AWS Lambda
Encountered several problems deploying with zappa flask application with selenium, using chromedriver and headless_chromium.
Deployment goes well right utill the end, when it gives 502 error. zappa tail reveals the following exception:
:…
![](../../users/profiles/7980564.webp)
Denys Melnychenko
- 31
- 3
2
votes
1 answer
Zappa set `app_function` correctly
I have the following setup of my Flask application:
├── app
│ ├── __init__.py
│ └── routes.py
├── application.py
└── zappa_settings.json
application.py:
import os
from app import config_app
if __name__ == "__main__":
application =…
![](../../users/profiles/1606657.webp)
wasp256
- 5,355
- 9
- 53
- 94
2
votes
2 answers
Wrapper error in Django Zappa deployment
I am trying to deploy my Django application using Zappa. I am using python 3.6 (although, I also have python 2.7 installed on my MacBook; never used it). Everything goes smoothly with the deployment except when I go to the url, I get this…
![](../../users/profiles/9328940.webp)
Raghav Suri
- 47
- 7
2
votes
2 answers
Flask-ask Cannot Deploy zappa
I was trying to deploy flask-ask alexa skill using Zappa.
I followed the instructions on Alexa Tutorial: Deploy Flask-Ask Skills to AWS Lambda with Zappa`
But I'm getting a
KeyError: pip._vendor.urllib3.contrib.
when I run: zappa deploy dev
![](../../users/profiles/5407679.webp)
Vedant Shetty
- 923
- 8
- 12
2
votes
1 answer
"ImportError" / "undefined symbol: PyFPE_jbuf" with pymssql
I'm currently trying to launch a Lambda as a Zappa (Python3.6). After deploying the app / configuring everything on the AWS-side, I ran the following command to test the app in my local environment,
zappa invoke production script.main
And got this…
![](../../users/profiles/6867467.webp)
Samuel Ryan
- 21
- 1
- 4
2
votes
1 answer
x-api-key only secures some resources
My setup:
flask - awsLambda - zappa - api gateway
I do have a simple app running via above mentioned services.
In my zappa_settings.json I have 'api_key_required' set to true.
Is it possible to set it up the way, that I will be using api key for…
![](../../users/profiles/7579935.webp)
scagbackbone
- 441
- 5
- 14
2
votes
1 answer
Zappa Python 3.6 Lambda Function without API Gateway
I'm trying to deploy and test an AWS Lambda function I'm working on and have tried both Zappa and nficano's Python-Lambda.
Zappa using @Task
The problem arises when I trigger an asynchronous function using Zappa's @Task decorator - the task times…
![](../../users/profiles/8129808.webp)
kilokahn
- 901
- 12
- 32
2
votes
1 answer
AWS Lambda function state (zappa)
I think to optimize flask app lambda server by adding internal cache for relatively slow to change data (e.g. site dropdowns might changes few times per year). I use zappa to deploy to lambda. Does it make any sense? Or does it flash memory each…
![](../../users/profiles/5874981.webp)
Serge
- 2,794
- 2
- 11
- 27
2
votes
1 answer
How can I use non-Python dependencies for my Django Zappa project?
I'm using a Python package called natto-py which requires a non-python Japanese tokeniser called MeCab.
Is it possible to use this for my Zappa project? How can MeCab be installed on Lambda (since pip does not work)?
Django 1.10 & Python 3.5
![](../../users/profiles/7767773.webp)
Zilong Li
- 801
- 9
- 21