Re: AWS Elastic Beanstalk and deploying a Cherrypy application...
While AWS has documentation about deploying Flask and Django, there is none for Cherrypy.
On an eb create myapp the AWS Elastic Beanstalk console produced the error seen below.
Within the documentation for Django
AWS makes reference to a config file:
option_settings:
aws:elasticbeanstalk:container:python:
WSGIPath: ebdjango/wsgi.py
during these steps:
Create a new directory, called .ebextensions:
(eb-virt) ~/ebdjango$ mkdir .ebextensions
Within the .ebextensions directory, add a configuration file named django.config with the following text:
Example ~/ebdjango/.ebextensions/django.config
option_settings:
aws:elasticbeanstalk:container:python:
WSGIPath: ebdjango/wsgi.py
This setting, WSGIPath, specifies the location of the WSGI script that Elastic Beanstalk uses to start your application.
I'm wondering if there is an analogous concept when configuring Cherrypy for deployment...
Error on AWS Elastic Beanstalk console:
| 2018-09-05 03:52:19 UTC-0400 | INFO | Environment health has transitioned from Pending to Ok. Initialization completed 12 seconds ago and took 2 minutes. |
| 2018-09-05 03:52:08 UTC-0400 | INFO | Successfully launched environment: elliots-cherrypy-env |
| 2018-09-05 03:52:08 UTC-0400 | INFO | Application available at elliots-cherrypy-env.kdwshbrmn3.us-east-1.elasticbeanstalk.com. |
| 2018-09-05 03:51:49 UTC-0400 | ERROR | Your WSGIPath refers to a file that does not exist. |
| 2018-09-05 03:51:40 UTC-0400 | INFO | Created CloudWatch alarm named: awseb-e-k8r8vmukpq-stack-AWSEBCloudwatchAlarmHigh-DT2GDTNGST7K
|