Description:
Amazon Elastic Compute Cloud (Amazon EC2) provides scalable computing capacity in the Amazon Web Services (AWS) cloud. Using Amazon EC2 eliminates your need to invest in hardware up front so you can develop and deploy applications faster. You can use Amazon EC2 to launch as many or as few virtual servers as you need, configure security and networking, and manage storage. Amazon EC2 enables you to scale up or down to handle changes in requirements or spikes in popularity, reducing your need to forecast traffic.
Problem Statement:
Company ABC wants to move their product to AWS. They have the following things set up right now:
- MySQL DB
- Website (PHP)
The company wants high availability on this product, therefore wants Auto Scaling to be enabled on this website.
Steps To Solve:
-
Launch an EC2 Instance
-
Enable Auto Scaling on these instances (minimum 2)
-
Create an RDS Instance
-
Create Database & Table in RDS instance:
a. Database name: intel
b. Table name: data
c. Database password: intel123
-
Change hostname in website
-
Allow traffic from EC2 to RDS instance
-
Allow all-traffic to EC2 instance