Capstone Project
Capstone Project
Step 2a: Install MySQL & HTTP web server on project ec2
$ sudo yum -y update
pg. 1
$ sudo amazon-linux-extras install -y lamp-mariadb10.2-php7.2 php7.2
$ wget https://github.com/unix501/AWS-Capstone-
/archive/refs/heads/main.zip
$ wget https://aws-tc-largeobjects.s3-us-west-2.amazonaws.com/ILT-TF-200-ACACAD-20-
EN/capstone-project/Example.zip
Open port 80 from the security group of the Cloud9 EC2 instance (all IPv4)
Get the cloud9 EC2 public instance IP address and test that you can access the website
pg. 2
Create target group – Name -applelb/ internetfacing / ipv4 / example |VPC / 1a –
pubsub1, 1b – pubsub2 / Security group – Delete default and add ALBSG / Create Listner
appgroup /
Create an auto scaling group – Launch template – ExampleLT (Modify the ami
parameters)/ Next / VPC – Example |VPC / AZ – Privatesubnet1,
privatesubnet2
/ next / LB – Attach to ELB /
o select appgroup|Http
o Healthchecks – select ELB Next
o Group Size – 2,2,4
o Policies – None Next Next
o Tags Name - key Value – Web Server Next
Submit - Congratulations
Before
pg. 3
pg. 4