Amazon elastic beanstalk
Amazon Elastic Beanstalk (EB) is a simple way of deploying our applications to AWS without having to worry about the various moving parts, such as EC2 and S3, individually. Amazon EB is a sophisticated tool and has great support for Python.
EB is best used from the command line (using the awsebcli
package) within a Python virtual environment. The gist of it is that you create a virtual environment for the Python application that you want to deploy to AWS. The application itself is contained in a single directory that serves as a way to package the code to be deployed.
Using the eb
command-line tool (part of awsebcli
), one creates an initial deployment configuration (eb init
), and potentially (that is, usually) customizes this initial configuration by writing additional configuration files (in a directory called .ebextensions
), specifying options, such as any environment variable needed, or any post installation actions to be performed.
Once the application has been...