Final Project-IS Cloud Computing Training
Final Project-IS Cloud Computing Training
Final Project-IS Cloud Computing Training
Hello Student, welcome back. We have spent a lot of time learning cloud computing on AWS, getting
practical experience doing hands-on lab and also doing assignments throughout the module. Now it's
time to put together all learning in our final project.
Prerequisites
You have everything to complete this final project as you have been following this course. So you don't
need anything extra. But in case you have missed anything, I recommend you complete it so that you
have -
1. An AWS account with privileges to create IAM roles, AWS VPCs, EC2 instances, and RDS
databases.
2. The next is Access to the AWS console with Administrator permission.
Let us now look at the problem statement of the architecture. Please note that when we do a practical
in AWS, we call it a lab or demo, so don't confuse the term lab.
Problem Statement:
In this final project, you will create a highly available (HA), scalable and fault-tolerant deployment of
the WordPress application. You will deploy the WordPress application in such a way that the application
server, load balancer and database will scale independently of one another. You will also deploy the
application's components like the webserver and database into two availability zones to distribute it and
guard against failure of the anyone availability zone. The WordPress application will be deployed in a
stateless fashion so that we can add or remove web application servers in response to the requests
flowing into the system. Finally, we create a CloudFront distribution as CDN and change the
configuration of WordPress.
Project Details
● Visit EC2 instance page, select the public WordPress instance created in last assignment. In case
you deleted. You need to follow the all steps to create EC2 instance with wordpress assignment.
That we are going to use to create Amazon Machine Image.
● Click Actions → Image and templates → Create image
● Enter the Image name and click Create image
● Make sure you are in right region to complete this project and stick with the same region all the
time till end of this project.
● Visit EC2/Load Balancing/Load Balancers
● Click Create Load Balalncer
● In Step 1: Select load balancer type, find Application Load Balancer and click Create
#!/bin/bash
yum update -y
sudo service httpd restart
● For Security group,select Select an existing security group and select asg-sg just
created
● For Key pair options, select Choose an existing key pair
● For Existing key pair, select the key created in Lab 1
● Finally, click Create launch configuration
● Visit EC2/Auto Scaling/Auto Scaling Groups
● Click Create an Auto Scaling Group
● For Auto Scaling group name, enterwordpress-sg
● For Launch template section, click Switch to launch configuration and select the
launch configuration created in last step and click Next
● In Configure setting stage,
● For Vpc, select Vpc / vpc-stack, created by CloudFormation
● For Subnets, select WebSubnet0 / vpc-stack and WebSubnet1 / vpc-stack, then
click Next
● In Configure advanced options stage
● For Load balancing, select Attach to an existing load balancer
● For Existing load balancer target groups, select alb-tg
● In Configure group size and scaling policies stage
● In Group size - optional Section
● For Desired capacity, Minimum capacity, Maximum capacity, enter 2,2,3 then
click Next
● In Add notifications and Add tags sections, click Next
● In Review sections, click Create Auto Scaling group
● Visit CloudFront console, and click Create distributions, choose Web for delivery method
● For Origin Domain Name, select wordpress-alb
● Find the Domain name of ALB Created in Step 1, paste it on browser to visit your
WordPress page, scroll down and click Log in to enter the admin page
● In admin page, click Performance/General Settings on the left menu
● Scroll down to find the CDN section
● For CDN type, select Amazon CloudFront Over S3
● Click Save Settings and Purge Caches
● Click Performance/CDN on the left menu, scroll down and
find Configuration:Objects section
● For Access key ID and Secret key, paste your IAM user credentials
● For Bucket, enter your S3 bucket name created in Lab 1
● For Replace site’s hostname with, enter the CloudFront Domain created in last step
and click Save Settings and Purge Caches
● Click Setting/General on the left menu
● For WordPress Address (URL) and Site Address (URL), enter your CloudFront
domain and click Save Changes
Step 6: Create Read Replica for Amazon RDS instance
REFERENCE
Attachment
● example-wp-config.php (2 kb)
● putty_setup.pdf (957 kb)