AWS Cloud Environment:
Scenario:
As a seasoned cloud practitioner, you are tasked with deploying a basic web application on AWS as part of a practical interview for an AWS junior cloud computing role. You are required to implement this using the following technologies in a control AWS lab environment. You are provided with some starter files for the web application that will require small adjustments to connect to your RDS service.
﻿﻿VPC
﻿﻿EC2
﻿﻿RDS (Postgres Aurora)
﻿﻿ALB & ASG
Note: DELETE ALL RESOURCES WHEN YOU HAVE COMPLETED YOUR TASKS!!!!!
Deliverables:
Note: Use your lastname as the appropriate naming context for your resources created.
﻿﻿﻿Show evidence of a custom VPC with private and public subnets in place. (5 Marks)
﻿﻿﻿Show evidence that your web application is functioning and accessible from the Application Load
Balancer (ALB) (lastname.php). (3 Mark)
﻿﻿﻿Show evidence of High Availability and Redundancy at your compute level. (4 Marks)
﻿﻿﻿Show evidence that your database is NOT publicly accessible when your web application is deployed behind the ALB. (2 Marks)
﻿﻿﻿Show evidence that your Compute Services are NOT accessible from the internet when your web application is deployed behind the ALB. (2 Marks)
﻿﻿﻿Show evidence that you've considered security for the services you've deployed. (4 Marks)
﻿﻿﻿Show evidence that your database can be fully recovered 35 days in the past. (1 Mark)
﻿﻿﻿Show evidence that you have an Auto-Scaling Group in place that runs a minimum and desired instance count of 2 with the ability to scale out to 5 based an 80% CPU metric for 2 minutes. (2
Marks)

Second page
9. Show evidence that your instance template uses your custom AMI. (1 Mark)
Tasks To be complete:
VPC:

Create a custom VPC with private and public subnets and anything else needed to facilate it.
Apply appropriate security in your VPC for your resources.
RDS:
﻿﻿Install an RDS Aurora Postgres database instance (Postgres version 15).
о
Create a subnet group for only your private subnets (a feature in RDS console).
﻿﻿Install your DB in the custom subnet group.
﻿﻿No Multi-AZ o No Public Access
﻿﻿Seed your database with the following data and add your first name and last name to the table.
CREATE TABLE final (
id
SERIAL PRIMARY KEY, fame VARCHAR NOT NULL, Iname VARCHAR NOT NULL, created at TIMESTAMPTZ DEFAULT Now ()
);
• Hint: You will want to use psql tool to create and seed your b from your EC2 instance
ALB:
﻿﻿Install and configure the appropriate ALB and Target Group for your deployment.
﻿﻿This can be done as part of your ASG (Auto Scaling Group) creation.
EC2:
﻿﻿Install and configure an appropriate instance to run your web application (use typical AMI we've used throughout the semester).
﻿﻿Install Apache web server and PHP (install - y httpd php php-pgsql postgresq115)
﻿﻿Ensure your instance is reachable for SSH to upload/create the php files.
﻿﻿Rename the sample.php file to <yourlastname. php> and upload/create it in the web folder.
﻿﻿Upload index.php to the /var/www/html folder
﻿﻿Add your actual RDS connection information to your lastname. php file.
ASG:
• Configure an ASG based on your own customized instance template (from your first EC2 instance with the web server and PHP) that has a Min (2), Max (5) and Desirable (2) that scales out by one (1) when CPU is over 80% for 2 minutes.
Note: DELETE ALL RESOURCES WHEN YOU HAVE COMPLETED YOUR TASKS!!!!!