On-premises workload (application and its database) migration to AWS using Amazon EC2 and RDS services.
Introduction:
In this project, we will go through the process of migrating a Python web application and its database data using the Lift & Shift (rehost) model to AWS following these migration steps of Planning, Execution, and Go-live as required.
Before creating our EC2 and RDS instances, we need to create a VPC and its subnets(public and private subnets). Let’s follow the steps below.
- Creating VPC and the Subnets:
Please note that AWS RDS Subnet Group is a collection of subnets that you can use to deploy your RDS database in a VPC.
Your VPC must have at least 2 subnets and these subnets must be in different Availability Zones.
Now, we need an internet gateway that will allow the traffic from the internet to reach our Application server (EC2 instance) and vice versa. This means our corporate users (clients) will be able to access the application server over the Internet and the server will also be able to download required packages or updates from the internet when initiated. The internet gateway must be attached to the VPC.
- Creating an Internet Gateway, attaching it to a VPC, and creating a Route