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
3
votes
1 answer

Zappa Error unable to find view (jade template)

I am trying a zappa node application and am unable to get it working beyond a trivial example. I have application.coffee require('zappajs') -> @set views: "#{__dirname}/views" @set 'view engine': 'jade' @use 'bodyParser',…
irfn
  • 560
  • 3
  • 11
2
votes
0 answers

I deployed a Django project packaged with Zappa to AWS Lambda, but it always returns null

I'm trying to use a zip file created with zappa package instead of zappa deploy to match my CI/CD process. AWS Lambda settings: Runtime: Python 3.9 Handler: handler.lambda_handler Architecture: x86_64 When I access the HTTP endpoint, it always…
touchingtwist
  • 1,930
  • 4
  • 23
  • 38
2
votes
0 answers

How to manage zappa settings to dev environment using django

What is the best practices to manage dev enviroment using zappa? Currently I have my zappa_settings.json in my project and inside it I have api urls, keys etc. when I deploy It to AWS these keys will be used correctly like: API_KEY =…
2
votes
1 answer

Force Zappa to use API Gateway HTTP API instead of REST

I want to use AWS API Gateway HTTP API instead of old REST with my lambda functions, for pricing reasons. Difference here: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-vs-rest.html What is the option in Zappa for…
Vincent J
  • 4,968
  • 4
  • 40
  • 50
2
votes
1 answer

How to make zappa work with my python 3.9 version?

I am trying to do zappa init but unfortunately I get this error : Traceback (most recent call last): File "/usr/local/bin/zappa", line 5, in from zappa.cli import handle File…
John doe
  • 3,680
  • 7
  • 31
  • 65
2
votes
1 answer

zappa: where to put aws secret & access keys?

I am trying to use zappa to launch my flask app in aws lambda & api gateway. The flask script requires a separate aws secret & access keys (needed for S3 & dynamoDB), different from the one i used for executing zappa. I realised that I can't put it…
Jake
  • 2,482
  • 7
  • 27
  • 51
2
votes
0 answers

zappa is ignoring flask project log messages

I have a flask project which i want to deploy on aws environment using zappa. i packaged my flask application and placed in S3. my ci/cd will take care of running this packaged file as a lambda. Issue: Basically my flask project contains custom…
siva
  • 549
  • 7
  • 25
2
votes
1 answer

Is there a way to test an application deployed with Zappa?

I have created a Django application which is deployed to AWS using Zappa in a CI/CD pipeline using the following commands: - zappa update $ENVIRONMENT - zappa manage $ENVIRONMENT "collectstatic --noinput" - zappa manage $ENVIRONMENT…
2
votes
0 answers

AWS Lambda (Python Zappa) Understanding the Logs

Zappa is a beautiful piece of code that makes your code serverless without anything to code. I'm trying to understand the intricacies of Zappa, and I would like to start with the Logging. I'm successful in deploying my Python Django App on AWS…
Praful Bagai
  • 16,684
  • 50
  • 136
  • 267
2
votes
1 answer

How to use zappa in gitlab CI/CD to deploy app to AWS Lambda?

I am trying to deploy a flask application on aws lambda via zappa through gitlab CI. Since inline editing isn't possible via gitlab CI, I generated the zappa_settings.json file on my remote computer and I am trying to use this to do zappa deploy…
some_programmer
  • 3,268
  • 4
  • 24
  • 59
2
votes
1 answer

Django zappa application's modular path to app's function? Don't know which one it is

I'm new to django and aws and I'm trying to get my project deployed. I have a similar filestructure as in the project here: https://github.com/divanov11/crash-course-CRM/tree/Part-8---data-to-templates-and-template-tags/crm1_v7_database_queries Now…
2
votes
4 answers

AttributeError: module 'dateutil.tz' has no attribute 'UTC' on Zappa Deploy

On trying to deploy my AWS Lambda function get this error on my Stacktrace (python-dateutil 2.8.1 (/Users/supratik/.local/share/virtualenvs/api_sourcer-sM-JSZy3-/Users/supratik/.pyenv/shims/python/lib/python3.6/site-packages),…
Supratik Majumdar
  • 2,365
  • 1
  • 23
  • 31
2
votes
0 answers

aws lambda django app deployed with zappa - python import precendecy

We have a Django application we deploy on AWS Lambda, using Zappa. We use pipenv to manage python packages of the project. Some packages we use (e.g cryptography) need to be compiled with the same configration as the lambda machine. To do that, I've…
Ozgur Akcali
  • 5,264
  • 2
  • 31
  • 49
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…
Niladri Paul
  • 101
  • 2
  • 11
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…
Dambre
  • 195
  • 2
  • 15