[web2py] Re: AWS Lambda Deployment Recipe

2019-09-18 Thread App Jar
Here is how I set up my db to work with RDS. Note: res-combined-ca-bundle.pem is the public key for RDS found here: https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem. driver_args = { 'ssl':{ 'ca': 'applications/ads/private/ssl/rds-combined-ca-bundle.pem'} } db_auth = 'mysql://u

[web2py] Re: AWS Lambda Deployment Recipe

2019-09-17 Thread App Jar
Unfortunately no. I access the admin from localhost (my dev machine) I also have an AWS CloudWatch alarm to trigger on an error in the CloudWatch logs and invoke a different lambda (running a python script) that writes the ticket to an error table in the DB so I can see those error tickets.

[web2py] Re: AWS Lambda Deployment Recipe

2019-09-17 Thread Jaime Sempere
Hi Mike, I've been following your recipe, but I have an 'read-only file system issue' (I think is due that I did not set up a database and web2py is trying to create the datatables files) So, can you give me some clues about it? Also, how should i set up and configure my rds to work with web2

[web2py] Re: AWS Lambda Deployment Recipe

2019-08-21 Thread App Jar
Hi Jaime, I now have 4 production web2py apps that have been up and running on Lambda for many months now with no issues. It is easily maintainable and I can update/deploy with a single command line: zappa update As for the databases, the DB doesn't have to be AWS. You can connect to any datab

[web2py] Re: AWS Lambda Deployment Recipe

2019-08-20 Thread Jaime Sempere
That's receipe is great, thanks for the work. One thing that I have not seen is which database are you using? I think with Zappa you need to use RDS, at least that's what I have seen with Django apps. So, I would like to ask you two questions: 1) Can you confirm about the database (is a RDS)?

[web2py] Re: AWS Lambda Deployment Recipe

2018-12-07 Thread Massimo Di Pierro
Good job! If you change that to a markdown or html page we can post on the web2py web site. I would also be happy to take the code from your example and turn it into a script that shops with web2py. Want to propose one? On Tuesday, 27 November 2018 15:51:54 UTC-8, appjar...@gmail.com wrote: > >

[web2py] Re: AWS Lambda Deployment Recipe

2018-11-28 Thread appjarbiz
Thank you Anthony, I added the wsgibase wrapper after my initial post. I was modifying gluon/main.py but I added the wrapper (lambda_handler.py) to avoid that. I confirmed which environ variables are coming through as unicode and submitted an issue to zappa. https://github.com/Miserlou/Zappa/i

[web2py] Re: AWS Lambda Deployment Recipe

2018-11-28 Thread Anthony
On Tuesday, November 27, 2018 at 6:51:54 PM UTC-5, appjar...@gmail.com wrote: > > I've created a first pass at an AWS Lambda deployment recipe which uses an > open-source tool called Zappa. > > I welcome any comments or suggested improvements. In particular, step 3 > requires modifying gluon/ma