SYS 360: Final Project - wAlber47/Tech-Journal GitHub Wiki

Using previous knowledge from the class, we are to build a LAMP Stack in which the Database (MySQL) is on a separate server on a private subnet from the Web Server.

Networking

With Amazon Virtual Private Cloud (VPC), we can create a new Public Cloud, Gateway, Subnets, and Elastic IPs.

VPC

Navigate to VPC, then Your VPCs, and select Create VPC. Enter the following settings:

image

Gateway

Navigate to VPC, then Internet Gateways, and select Create Internet Gateway. Once created, attach the Gateway to a VPC using the Actions menu.

Subnets

Navigate to VPC, then Subnets, and select Create Subnet. Enter the following settings:

image

Elastic IPs

Navigate to VPC, then Elastic IPs, and select Allocate Elastic IP Address. After creating them on us-east1, your screen should look like this:

image

Instances

For this project, we need three new instances; Web, Management, and MySQL machines. For these machines, I used Amazon Linux 2 AMI (HVM) - Kernel 5.10 and there were a few configuration changes that needed to be made:

  • Make sure that the machines are "Free Tier"
  • Switch their VPC to the one just created and change the Subnet

After creating the three machines, your EC2 Instances page should look like this:

image

Security Groups

We also created new security groups for this VPC. One for the public subnet that allows for HTTP to Web and SSH to the Jumpbox. The other is for the private subnet that allows for MySQL only from EC2 Web and SSH to the Jumpbox.