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
0
votes
0 answers

Flask stream/multipart file from S3

I'm using Flask in AWS Api Gateway/Lambda environment (Thanks to Zappa), but there is a limit in response size, so Flask's send_file is not enough in this context. Is there a way I can stream/multipart(not sure if these are the correct terms) a…
Mojimi
  • 2,561
  • 9
  • 52
  • 116
0
votes
0 answers

Call Django command with phrase as argument

I'm trying to run the command zappa manage staging 'run_sql --sql \"show databases\"' But I get the following error: zappa manage staging 'run_sql --sql "show databases"' [START] RequestId: dd895134-dc62-41c3-987b-3ea550af1129 Version:…
Vadorequest
  • 16,593
  • 24
  • 118
  • 215
0
votes
1 answer

Django AWS Zappa deployement satic files error

I've manage to deploy my site to AWS Lambda using Zappa which was complicated but i got there in the end. However i'm running into an issue where some of my icons are not loading. Please see the consol log below. Blocked loading mixed active content…
Comm4nd0
  • 631
  • 8
  • 14
0
votes
1 answer

Getting 403 for static files using django-s3-storage

I've set up the settings as follows: STATIC_ROOT = BASE_DIR + '/static' YOUR_S3_BUCKET = "tlot-static" # DEFAULT_FILE_STORAGE = "django_s3_storage.storage.S3Storage" STATICFILES_STORAGE =…
Tjorriemorrie
  • 16,818
  • 20
  • 89
  • 131
0
votes
1 answer

"TypeError: 'Klein' object is not callable" while calling an endpoint from AWS Lambda

I'm trying to run a simple server from klein import Klein app = Klein() @app.route("/") def hello(request): return "Hello World!" if __name__ == "__main__": run("localhost", 8080) I packaged and uploaded it to AWS Lambda using Zappa,…
MtziSam
  • 130
  • 11
0
votes
1 answer

Getting NoSuchEntity Error on Zappa Deploy

Trying to run zappa deploy and getting an error: ============== Traceback (most recent call last): File "/var/venv/lib/python3.6/site-packages/zappa/cli.py", line 747, in deploy function_name=self.lambda_name) File…
Micah
  • 10,295
  • 13
  • 66
  • 95
0
votes
2 answers

AWS lambda serverless website (using django ) session maintaining

I developed a website using django. Recently I am trying to make it serverless ( by deploying to lambda ). I haven't figured out how to maintain the session after user logged in when deployed to lambda.any suggestions please.
Vani Polnedi
  • 595
  • 2
  • 4
  • 19
0
votes
0 answers

GraphQL on AWS lambda: The request could not be satisfied. How to solve 403 error?

I have deployed an GraphQL API to AWS Lambda using the Zappa Framework. If I do a request from my local machine to the local server version like this everything works fine: import requests url = 'http://127.0.0.1:8000/graphql' token = '...' headers…
Peterhack
  • 941
  • 4
  • 15
  • 34
0
votes
1 answer

im trying to run "zappa init" on my ubuntu server on aws also conda is installed.... when i init zappa its asking for "active virtual env"

Oh no! An error occurred! :( ============== Traceback (most recent call last): File "/home/ubuntu/anaconda3/lib/python3.6/site-packages/zappa/cli.py", line 2693, in handle sys.exit(cli.handle()) File…
0
votes
1 answer

Zappa doesn't work with Flask Blueprint

I have a Flask app and I'm using flask_restful and blueprint to serve up my APIs. After deploying my app with Zappa, Zappa gives me Error like below: Error: Warning! Status check on the deployed lambda failed. A GET request to '/' yielded a 502…
Kazaka Nelson
  • 158
  • 3
  • 14
0
votes
0 answers

AWS S3 boto download error

I'm using AWS S3 with the help of the boto3 client in flask. I'm able to upload my files successfully to the s3 bucket. Deployed Appliation https://k8m00unpc6.execute-api.us-east-1.amazonaws.com/dev I've been getting an error…
0
votes
1 answer

Facing issue in Zappa when try to access the API with Authorization token

I have implemented an API server using Django and Django-REST-Framework with Zappa in AWS Lambda. I use Auth0 for identity. When I try to signup or login from localhost it works well and good but when I try to do the same from the AWS domain it…
Rohan
  • 477
  • 7
  • 22
0
votes
1 answer

Determine if we run under AWS Lambda + Zappa?

Is there a way to determine if we run under AWS Lambda + Zappa? Maybe some environment variable? (I want to load different settings if my Python app starts under Zappa.)
porton
  • 5,214
  • 11
  • 47
  • 95
0
votes
1 answer

Uploading Files instead of Zipfile?

EDIT: Zappa does not use EC2 and not Beanstalk, but Amazon Api Services. So probably there ist no way. I have a question for Zappa EC2 Serverless Services. Launching zappa update dev creates one Zip-File and uploads this. Because my upload is slow,…
flaschenpost
  • 2,205
  • 1
  • 14
  • 29
0
votes
1 answer

Did I get aws CloudFront right? labmda, s3, cloudfront

I was reading and watching videos about aws lambda, s3 and CloudFront(CF). I'd like to confirm here, that I understand (or not) the concept of aws cloudfront and more generaly CDNs. aim: I'd like to serve images from my app via CF. I intend to…
scagbackbone
  • 681
  • 1
  • 8
  • 20
1 2 3
15
16