Skip to content

vinayak1809/flaskapp-on-aws-Elastic-Beanstalk--with-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

flaskapp-on-aws-Elastic-Beanstalk--with-mysql

First create an account on aws and login

Deploying Flask app on aws with mysql

Step1 : Create a Database

  1. Search RDS and click on Create Database.
  2. Choose Database creation method as Standard Create and Engine options as MySQL

Engine

  1. Select Edition as MySQL Community and Version as per your choice Version MySQL 8.0.27
  2. Select Templates as Free tier if you are not using any paying to aws to host a database.
  3. Give Database instance name,username and password.

Instance

  1. Leave other settings as it is just give public access YES

Public Access

  1. Then click on create Database.
  2. Wait for some minutes unit database gets created.
  3. Then Click on Database -> Click on Configuaration -> Inbound rules -> Edit inbound rules and edit as below.

Inbound Rules

Step 2 : Create Application

  1. Search for Elastic Beanstalk
  2. Click on Application -> Create new Application
  3. Give Application Name and Description and click on create.

Application Name

Step 3 : Create Environment

  1. Click on Environment -> Create new Environment

  2. Select Web server Environment.

  3. Select application name that you gave before.

  4. Give Enviroment name.

  5. Select Platform as Managed platform

Select Platform

  1. Select upload your code and upload your zip file of your code.

File Upload

  1. Click on Create Environment(it will take few minutes too create enviroment).
  2. If health is Ok of the app, then the project is successfully deployed on AWS.

Health

  1. How zip file should be.
projectt
├── application.py
├── template
│   ├── page.html
│   └── sign_up.html
└── virt

Releases

No releases published

Packages

No packages published