Skip to content

Demo how to build and deploy a simple Python Flask application to AWS Elastic Beanstalk using GitHub action as CI/CD tool

Notifications You must be signed in to change notification settings

NYARAS/aws-elastic-beanstalk-demo

Repository files navigation

Deploying Simple Flask Application to AWS Elastic Beanstalk

Our Application

Our application is a simple "Hello World" example, and for the purpose of demostrating CI/CD using Github action we have included s test case as well.

AWS Elastic Beanstalk

Our Flask application is going to be deployed to AWS Elastic Beanstalk which is a service that automates the deployement and scalling of a web application. It takes your source code and takes care of all the infrustructure configuration.

How to install and run this project

Prerequisites

Make sure you have the following libraries installed before beginning:

Cloning from github

From your terminal go to the directory you want to clone the project into.

$ cd path/to/your/directory

Clone the project.

$ git clone [email protected]:NYARAS/aws-elastic-beanstalk-demo.git

Setting up the project's dependencies

Navigate into the project directory from the terminal.

Setup the following dependencies.

$ cd path/to/your/directory/aws-elastic-beanstalk-demo

Create a virtual environment to use for your project

# Ignore this if you are not using virtualwrapper
$ mkvirtualenv --python=/usr/bin/python3 env # env is the name of your virtual environment

From your virtualenv do the following.

(env)$ pip install -r requirements.txt # run this in a clean virtualenv

About

Demo how to build and deploy a simple Python Flask application to AWS Elastic Beanstalk using GitHub action as CI/CD tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages