-->
Elastic Beanstalk(EB) is the amazon aws platform as a service product offering. java, php and .net applications but recently has also added python to the mix.
The amazon aws documentation is pretty awesome and there are step-by-step instructions are there for setting up Django and Flask applications but missing is the lovely pyramid framework.
The aws elastic compute(EC2) instance will use apache and mod_wsgi, so I have used sample code from the the deploying Pyramid under mod_wsgi documentation Here. The EB python container options have wsgi path which must be set to an application callable. I have this set to application.py which contains the code below.
from pyramid.paster import get_app, setup_logging
import os.path
ini_path = os.path.join(os.path.dirname(__file__), 'production.ini')
setup_logging(ini_path)
application = get_app(ini_path, 'main')