Questions tagged [zappa]

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.

https://github.com/Miserlou/Zappa/#about

203 questions
11
votes
10 answers

Zappa deployment error : GET request yields 502 response code

I am trying to deploy the first zappa example app built with Flask-Ask, It looks like everything works good but after the Deploying API statement I get the following error : Error: Warning! Status check on the deployed lambda failed. A GET request…
s_om
  • 443
  • 6
  • 17
8
votes
2 answers

Zappa / Async AWS Lambda Function times out in 30s

I have a Python 3.6 - Flask application deployed onto AWS Lambda using Zappa, in which I have an asynchronous task execution function defined using @Task as discussed here However, I find that the function call still times out at 30 seconds as…
kilokahn
  • 901
  • 12
  • 32
8
votes
2 answers

zappa custom authorizer for flask with cors

I am using flask-cors for a aws python aws lambda API. I deployed it with zappa, it worked as intended. Yet cors does not work with custom authorizer inspired by…
Serge
  • 2,794
  • 2
  • 11
  • 27
7
votes
1 answer

Python AWS Lambda deploy - Zappa package without Zappa requirements

I want to package and deploy a simple project on AWS Lambda, using Zappa, but without the Zappa requirements overhead. Given this simple scenario: lambda_handler.py def handle(event, context): print('Hello World') I have a deploy.sh script…
joaoricardo000
  • 3,884
  • 3
  • 19
  • 36
7
votes
2 answers

Asynchronous task queue for serverless AWS Lambda / Django / Zappa

I have been experimenting with deploying Django apps to AWS Lambda with Zappa. In some of my other (EC2/EBS hosted) Django projects, if there is a need to perform some heavier calculation that can take some time (such as sending a lot of emails, or…
tuoppimas
  • 101
  • 1
  • 3
6
votes
2 answers

If I plan to use Node, is it a mistake to jump right in to a CoffeeScript framework like Zappa?

I haven't used much JavaScript since the early 00s, and I'm starting to see that my current app is well suited for Node.js. But as a ruby developer, coffeescript looks like it will be more my forte. But I'm concerned that if I jump right into a…
Jeremy Smith
  • 13,617
  • 17
  • 64
  • 112
6
votes
1 answer

Unable to import module 'handler': No module named 'werkzeug'

I suddenly started getting this error on a Django + AWS lambda setup with zappa. I'm using ubuntu 18.04 image on bitbucket pipelines to trigger the deployment. Unable to import module 'handler': No module named 'werkzeug' It was working fine for…
sa77
  • 3,397
  • 3
  • 19
  • 35
5
votes
1 answer

Failed to find library: libmysqlclient.so.18

I have flask API running on AWS lambda deployed using zappa. While instancing it's not able to find libmysqlclient.so.18 file which I believe consumes a lot of time. Error message in attached image Can someone please help? Thanks!
Naishav Mehta
  • 266
  • 2
  • 10
5
votes
1 answer

Where does zappa upload environment variables to?

tl;dr Environment variables set in a zappa_settings.json don't upload as environment variables to AWS Lambda. Where do they go? ts;wm I have a Lambda function configured, deployed and managed using the Zappa framework. In the zappa_settings.json I…
Josh
  • 843
  • 8
  • 18
5
votes
1 answer

How to invoke a @app.route function set up in zappa from outside using boto3?

I have a zappa lambda deployed at arn:aws:lambda:us-east-1:xxxxx:function:xx-xx-prod, which serves a route like so: @app.route('/test', methods=['POST']) def test(): response = app.response_class( response=get_jsonstr({'test': 'OK'}), …
kriss
  • 51
  • 5
5
votes
1 answer

Zappa not packaging nested source directories

I have a python application that I am trying to deploy with zappa. The root level of my directory has the application and a directory named helper. The structure looks like this: |-app.py |-zappa_settings.json |-helper |-api.py …
medium
  • 3,708
  • 14
  • 50
  • 63
5
votes
1 answer

How do I get a stack trace from Zappa with Python on AWS Lambda

I'm using the Zappa framework https://github.com/Miserlou/Zappa with Python and Flask on AWS Lambda. When it raises an exception it appears in the CloudWatch log but is illegible to me. I do get a normal Flask stack trace returned from a HTTP GET in…
I have no cat
  • 225
  • 4
  • 12
4
votes
2 answers

Zappa packaged lambda error ..botocore.exceptions.SSLError: SSL validation failed for [Errno 2] No such file or directory

Running AWS lambda service packaged using Zappa.io The service is running however, its not able to reach the S3 file due to ssl error Getting the below error while trying to access remote_env from an s3 bucket [1592935276008] [DEBUG]…
virtuvious
  • 1,954
  • 2
  • 15
  • 15
4
votes
1 answer

django-zappa: Error loading psycopg2 module: libpq.so.5: cannot open shared object file: No such file or directory

When trying to deploy a Django project using django-zappa, I get the following error in the zappa tail output: django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: libpq.so.5: cannot open shared object file: No such file or…
OhMad
  • 4,407
  • 11
  • 39
  • 66
4
votes
1 answer

zappa giving 413 request entity too large error for Django form with mutiple images

I have a Django project that requires users to use add multiple images to a post article. I am using django and deploying it using zappa. I know that in Zappa the maximum size in the page load is 10mb. I have 1 post image and 7 prep images. When…
Samir Tendulkar
  • 761
  • 1
  • 10
  • 36
1
2 3
13 14