zappa

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

北城以北 提交于 2021-01-07 06:42:27
问题 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 dev . My zappa_settings.json file: { "dev": { "app_function": "main.app", "aws_region": "eu-central-1", "profile_name": "default", "project_name": "prices-service-", "runtime": "python3.7", "s3_bucket": -MY_BUCKET_NAME- } } My .gitlab-ci.yml file:

aws lambda django app deployed with zappa - python import precendecy

ε祈祈猫儿з 提交于 2020-03-20 05:59:39
问题 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 generated wheels for those packages on a similar machine, and included them in a sub folder in the directory. So here is our deployment process now: install packages with pipenv (which also includes those special packages) extract precompiled

aws lambda django app deployed with zappa - python import precendecy

耗尽温柔 提交于 2020-03-20 05:58:07
问题 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 generated wheels for those packages on a similar machine, and included them in a sub folder in the directory. So here is our deployment process now: install packages with pipenv (which also includes those special packages) extract precompiled

aws lambda django app deployed with zappa - python import precendecy

假装没事ソ 提交于 2020-03-20 05:58:04
问题 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 generated wheels for those packages on a similar machine, and included them in a sub folder in the directory. So here is our deployment process now: install packages with pipenv (which also includes those special packages) extract precompiled

Website deployment to AWS issues with domain

牧云@^-^@ 提交于 2019-12-12 23:31:31
问题 When I attempt to certify a Domain using I am getting this error: zappa certify BadRequestException: An error occurred (BadRequestException) when calling the CreateDomainName operation: The domain name you provided already exists. I have recently transferred this domain from GoDaddy to AWS. Does anyone know a solution to this issue? 来源: https://stackoverflow.com/questions/47216585/website-deployment-to-aws-issues-with-domain

Mailing isn't working in Django AWS Lambda (Zappa) behind a VPC

和自甴很熟 提交于 2019-12-11 16:18:57
问题 I have an AWS lambda function (Django zappa) that is running inside a VPC thus I'm not able to send emails because Lambda isn't connected to the internet, I tried NAT Gatway but with no hope. I created a NAT Gatway using one public subnet of the VPC. Created another private subnet with a route table that routes 0.0.0.0/0 to the NAT Gateway. I would appreciate any help. 回答1: Go to VPC Dashboard and use the Launch VPC Dashboard Create (Allocate) an elastic IP address and keep it handy. Select

Flask redirect function redirects to raw API Gateway url instead of custom domain

 ̄綄美尐妖づ 提交于 2019-12-10 12:13:14
问题 I am using the redirect function in my flask app, but whenever the function triggers it redirects the autogenerated API Gateway domain instead of my own domain, which in turn gives me a message forbidden because it is and was internal url. It works when I run in localhost but as soon as it's AWS it doesn't work. I am using a cloudfront distro to redirect users from http to https. zappa version: 0.48.2, python: 3.6, zappa_settings.json: { "dev": { "app_function": "application.application",

zappa scheduling with Python

删除回忆录丶 提交于 2019-12-02 05:00:47
问题 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 problem is that I need to be able to schedule this message to be sent 10 minutes in the future. Zappa offers task execution but their documentation is unclear for how something like this should be done. Thanks for the help. 回答1: This isn't something Zappa directly supports at

zappa scheduling with Python

懵懂的女人 提交于 2019-12-01 23:59:26
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 problem is that I need to be able to schedule this message to be sent 10 minutes in the future. Zappa offers task execution but their documentation is unclear for how something like this should be done. Thanks for the help. This isn't something Zappa directly supports at this time. You'll need to perform a hack of some sort around the available scheduling system. Schedule an