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]
241 questions
3
votes
1 answer
Deploying django to AWS Lambda connecting to RDS MySQL, showing error: NameError: name '_mysql' is not defined
Deploying django to AWS Lambda using zappa connecting to RDS MySQL,
not able to deploy
showing error: NameError: name '_mysql' is not defined:
zappa update dev gives error:
Error: Warning! Status check on the deployed lambda failed. A GET request…

Raghu gowda
- 101
- 4
3
votes
1 answer
Zappa+Flask: A GET request to '/' yielded a 502 response code
I am trying to deploy my flask app on aws lambda via zappa. And I am getting the following error when I do zappa deploy dev:
Calling deploy for stage dev..
Downloading and installing dependencies..
- sqlalchemy==1.3.16:…

some_programmer
- 3,268
- 4
- 24
- 59
3
votes
1 answer
Django, Zappa - RuntimeError: populate() isn't reentrant
I am beginner of django and zappa.
And I am trying to deploy django application using zappa on AWS lambda.
Also, I'd like to connect RDS database (postgres).
To create database, I entered "zappa manage dev create_db"
Then, error message occurred as…

Seung-hee Han
- 75
- 1
- 9
3
votes
0 answers
zappa docker returns FileNotFoundError No such file or directory: venv/lib/python3.6/site-packages
I am trying to build my Flask app using Zappa and docker ( Serverless with Aws Lambda )
Here is DockerFile:
FROM lambci/lambda:build-python3.6
MAINTAINER "Bongo BD"
RUN pip3 install -U pip zappa botocore awscli
WORKDIR…

Selim Reza
- 683
- 1
- 11
- 31
3
votes
1 answer
Packaging local python dependencies for Zappa deployment
Context
I have a local folder containing multiple Python Flask applications and a commons python package. As you can see I have created a virtualenv for each of the Flask applications, because I would like to deploy to AWS Lambda using Zappa and…

Tom Hemmes
- 2,000
- 2
- 17
- 23
3
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…

Atrum
- 43
- 4
3
votes
3 answers
Django Zappa generated cloudfront generates 403 error
I run a Django project deployed on AWS lambda using serverless Zappa framework. This can be accessed by a randomly generated link from AWS API Gateway lets say:-
randomly-generated-link.aws.amazon.com/production
I have also created an SSL…

Abishek
- 369
- 4
- 21
3
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:
:…

Denys Melnychenko
- 41
- 3
3
votes
1 answer
Error: Please define stage 'create_pg_db' in your Zappa settings
Intro: I am deploying a django app to AWS lambda severlessly using zappa. My RDS instance has a postgres database. I am watching rich jones djangocon video on how to deploy django app severlessly using zappa. So far I have managed to reach the part…

Samir Tendulkar
- 1,151
- 3
- 19
- 47
3
votes
2 answers
Adding a Geo Django project to AWS Lambda using Zappa. Getting OSError: cannot open shared object file: No such file or directory
I am trying to deploy my Geo-Django app to Zappa
1st I got
django.core.exceptions.ImproperlyConfigured: Could not find the GDAL library
(tried "gdal", "GDAL", "gdal2.2.0", "gdal2.1.0", "gdal2.0.0", "gdal1.11.0",
"gdal1.10.0", "gdal1.9.0"). Is GDAL…

Samir Tendulkar
- 1,151
- 3
- 19
- 47
3
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…

Raghav Suri
- 57
- 9
3
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…

Serge
- 3,387
- 3
- 16
- 34
3
votes
1 answer
AWS Lambda with Zappa fails on "import module 'handler': No module named 'werkzeug' "
After deploying my python application with Zappa and visiting the aws link, I can see the following error:
When I checked the logs, I found the source of the error:
I then decided to pip install -r requirements.txt to ensure that it's installed…

Nathan Ortega
- 538
- 1
- 5
- 17
3
votes
2 answers
zappa scheduling with Python
I am running this code to send a sms message with Twilio...
client.messages.create(
to=form.phone.data,
from_="+1xxxxxxxxxx",
body="This is a text message"
My application is hosted on AWS Lambda using Python's Zappa. The…

freefly0313
- 105
- 4
- 14
3
votes
3 answers
Tell Mocha to use CoffeeScript files by default
I'm currently trying to set up testing in Mocha for an application I'm writing using Zappa.js. So far I've been following this tutorial, and converting what I need from JS to Coffeescript.
However I'm a little stuck with trying to run tests. I have…

Kyri Elia
- 997
- 9
- 18