Sample Application for AWS Elastic Beanstalk using Docker and Python Flask
$ virtualenv my-py
N.B. .ebignore with my-py
$ source my-py/bin/activate
$ pip install flask==1.0.2
$ pip freeze > requirements.txt
N.B. remove version from requirements
$ eb init
$ eb create my-env
$
$ eb init -p python-3.6 my-app --region us-east-2
$ eb init
$ eb terminate
- Install the 'eb' tool.
- Git clone this repository.
- Run 'eb init' in the repository, and answer the questions, providing your API Key, etc.
- Run 'eb start' in the repository, and wait for it to complete.
- Run 'git aws.push' in the repository.
- Run 'eb status' in the repository, and wait for it to return 'Green' status.
- Browse to the URL reported by 'eb status', and be amazed at your autoscaling, crazy, cloud-based application!