This device is not compatible.
PROJECT
Connecting a Flask Application to AWS RDS (MySQL)
Learn how to create and manage Amazon Relational Database Service (Amazon RDS) and Amazon Elastic Compute Cloud (Amazon EC2) using AWS command-line interface. Furthermore, learn how to connect a Flask application to AWS RDS to use cloud-based databases.
You will learn to:
Create and manage RDS.
Create and manage EC2.
Connect EC2 with RDS.
Deploy a Flask application on EC2 using RDS as the database.
Skills
Using AWS Cloud Services
Cloud Deployment
Distributed Applications
Prerequisites
A basic understanding of Flask applications
A good understanding of AWS network and security
A basic understanding of EC2 resources
A basic understanding of RDS resources
Technologies
MySQL
Flask
AWS EC2
Project Description
Amazon Web Services (AWS) provides a managed SQL database service called Amazon Relational Database Service (Amazon RDS). Amazon RDS uses various database engines to manage the data, migrations, backup, and recovery. Pricing details of RDS are provided here.
In this project, we will create a database instance of SQL over RDS. After that, we will create a key pair value, use a security group and make an EC2 instance using Amazon Machine Image (AMI). Then, we’ll use the endpoint of that database to connect it with the EC2 instance and install the required packages for the Flask application. In the end, we’ll deploy the Flask application on EC2 and connect the application to use the AWS RDS (MySQL) database.
Project Tasks
1
Introduction
Task 0: Introduction
Task 1: Configuration
2
RDS
Task 2: Create a New RDS
Task 3: Describe DB Instances
3
EC2
Task 4: Add a New Inbound to the Security Group
Task 5: Create a New Key Pair
Task 6: List all Key Pairs
Task 7: Run an EC2 Instance
Task 8: Check the State of the EC2 Instance
4
Virtual Machine
Task 9: Copy the Data from a Local Machine to the EC2 Instance
Task 10: Access the EC2 from the Local Machine
Task 11: Install Necessary Packages
Task 12: Access the RDS using EC2 CLI
Task 13: Configure the Flask Application
Task 14: Run the Flask Application
Task 15: Clean Up
Congratulations!
Relevant Course
Use the following content to review prerequisites or explore specific concepts in detail.