Skip to content
/ AWS Public

Deploy flask application with mysql database to AWS

License

Notifications You must be signed in to change notification settings

Samb55/AWS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

In AWS their are multiple ways to deploy your web app. I will try to briefly explain some of them.

Build a web app

Build web app is the easiest way to deploy your web app in AWS. Because, The AWS will create the whole environment for you. You just need to upload your code. To get the idea you can just download sample_flask.zip from my repository (note: You have to read RDS.md file before you used this code and download the required packages). The file (sample_flask.zip) has a whole code file with (requirements.txt) file. The file (requirements.txt) contains all libraries needs for your code to run (e.g. flask, flask-mysql, etc...). The steps to deploy your app are described bellow:

  1. open your management concole.
  2. Scroll down to Build a Solution.
  3. Click on Build a web app.

screen shot 2018-10-17 at 8 50 21 pm

  1. Enter your app information. As shown in the picture bellow I enter the name of application is intro and platform I selected python. Then, click on create application.

screen shot 2018-10-17 at 8 51 06 pm

5. The application will take a few minutes to be created. Because, the environment has to take time for creating instances.

screen shot 2018-10-17 at 8 52 15 pm

6. Click on the link as shown in the picture will open you the website. This link can be used in route53 for the domain.

screen shot 2018-10-17 at 9 18 50 pm

7. The picture bellow will show you the template that AWS deploy it for you to show you the environment work very well.

screen shot 2018-10-17 at 9 20 08 pm

8. Click on upload and deploy to deploy your app.

screen shot 2018-10-17 at 9 18 50 pm

9. In upload application you should click on choose file and upload zip file that contains your code (e.g. sample_flask. zip)

screen shot 2018-10-17 at 9 23 28 pm

                                        Congratulations!!! you have your own app. 

About

Deploy flask application with mysql database to AWS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published