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

241 questions
2
votes
2 answers

Zappa Update failing in CircleCI

I am trying to deploy my Python project to AWS Lambda using Zappa and circleci. its throwing error Error: Zappa requires an active virtual environment! #!/bin/bash -eo pipefail zappa update dev (PyYAML 3.13 (/usr/local/lib/python3.6/site-packages),…
Shamnad P S
  • 1,095
  • 2
  • 15
  • 43
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): …
user9460641
2
votes
1 answer

New branch/stage using Zappa

I currently have an API up on AWS Lambda using Zappa/Flask (Py 3.7) My zappa_Settings.json file looks like so: { "beta": { "app_function": "application.application", "profile_name": "changed", "project_name": "changed", …
kilokahn
  • 1,136
  • 2
  • 18
  • 38
2
votes
3 answers

How do I make my command line use a specific version of python?

I am getting started on using Zappa. However, I already had installed python 3.7 on my computer while Zappa uses 3.6. I installed python 3.6.8, but when I try to use zappa in the cmd (zappa init) it uses python 3.7 by default. How can I direct zappa…
Jrblack
  • 39
  • 5
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…
Rony Azrak
  • 527
  • 2
  • 6
  • 16
2
votes
1 answer

Zappa + RDS Connection Issues

I'm hoping someone could help me out with some questions regarding VPC. I'm pretty new to AWS and I'm just trying to build a sample web app to get my feet wet with everything. I've been roughly following this guide to try and setup a basic project…
cle_joe
  • 101
  • 1
  • 10
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 =…
wasp256
  • 5,943
  • 12
  • 72
  • 119
2
votes
1 answer

Zappa django response time

When deploying a bare-bones Django application using Zappa, I'm finding my TTFB (Time To First Byte) times are between 280-800ms however generally around 700ms. Which is far too long for a website. Other people seem to be getting much better…
Luke
  • 2,851
  • 1
  • 19
  • 17
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
Vedant Shetty
  • 1,577
  • 13
  • 14
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…
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…
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…
kilokahn
  • 1,136
  • 2
  • 18
  • 38
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
Zilong Li
  • 889
  • 10
  • 23
2
votes
1 answer

OpenCV install directory only has one .so file?

I installed Opencv in a Docker container so that I can upload the linux binaries for support a git project that isn't mine. I need it to run python 3.6 and opencv 3.x, which all seems to be working fine. However, the directory containing the cv2…
Big Guy
  • 712
  • 1
  • 8
  • 21
2
votes
1 answer

Failure of endpoint after deployment to AWS using Zappa

I tried the quick start examples and deployed them all to the aws and they worked as expected. After I deployed my project, it did not work with unhelpful message when hitting the endpoint: {"message": "An uncaught exception happened while servicing…
Ahmed Roshdy
  • 381
  • 6
  • 15