Â
In previous projects, you have investigated and reported on several aspects of cloud technology crucial to BallotOnline’s cloud migration. To make a final determination, you have been asked to build a proof of concept for migrating the company’s website to Amazon Web Services’ (AWS) cloud.
You will conduct the proof of concept in several steps.
In each of these steps, you will prepare lab reports documenting your efforts with the report templates provided.
Finally, you will prepare and submit the final Proof of Concept report.
STEP 1: Build an AWS Migration Environment and Configure the Web Services
Â
The BallotOnline management has asked you to build out an environment as a proof of concept on Amazon Web Services (AWS) to migrate the BallotOnline web service. This environment will consist of virtual servers or virtual machines made up of two instances of EC2 that will both be used to serve out the BallotOnline website.
You will use AWS Elastic Load Balancer to split the traffic going to this site (so each of the EC2 instance will serve half of the Internet traffic) and you will also use AWS Auto Scaling to ensure that the servers can scale to support the demand. (In our specific instance, we want to make sure if one of the servers is down, a new instance will automatically be spun up.)
After the basic infrastructure is provisioned, then you will configure the web servers to be able to provide web services.
Lab 1: Build AWS Migration Environment Lab
Â
Overview
In this lab, you will set up the core infrastructure. This includes your virtual machines (or instances)
in AWS Elastic Compute Cloud (EC2), Auto-Scaling group, and Elastic Load Balancer.
Â
Log In to the AWS Console
Â
Launch an Instance
access the Amazon Elastic Compute Cloud (Amazon EC2) web service. Alternatively, you can also access ec2 by clicking on the Services link (on the upper left corner of the screen) and selecting EC2 from the list of services.
Â
Used with permission from Amazon Web Services.
Alt text= Screenshot of the launch instance.
Â
located at the top of the screen.
Used with permission from Amazon Web Services.
Alt text= Screenshot of the AMI.
Â
eligible.
Â
Configure Instance Details
Â
Number of instances: 2
Note that on this screen and subsequent screens, you have the option to move the cursor
over the “letter i†circles for more information on each field.
Â
Configure Launch Configuration              and AutoScaling
Configuration link in the pop-up window that appears. Click Continue.
Â
Name: LAB 625 Lab
Â
you’ve chosen, you will need to click in the AMI box and search by AMI id of the AWS Linux
AMI for that AMI, and manually choose the t2.micro instance
type.
Make sure you check “Enable EC2 instance detailed monitoring within CloudWatch†in the
Monitoring section, and select “Create a new security group†in Security Group section (note
the security group name), as well as your existing key pair in Key Pairs (login) section.
Â
Key Pair box, select “Create a new key pair.” For the key pair name, enter:
Lab625-key
Click the Download Key Pair button.
Save this private key file in a secure and accessible location on your computer. You will not
be able to download it again from Amazon. You will need this key for future lab activities in
LAB 625. Do not share this key file with anyone else since it will permit that person to
manage your Amazon instances.
Save the key as the following file name on your computer:
Lab625-key.pem
Â
Launch Configuration
Â
launch configuration and click on Create Auto Scaling Group in Actions drop-down.
Â
the Network screen, pick the us-east-1a default subnet. On the Load Balancing – optional
screen, click No Load Balancer at this time (you will create it afterwards), and check “Enable
group metrics collection within CloudWatch†in the Additional settings – optional – Monitoring
section at the bottom. On the next screen – Group Size – set the Desired capacity to 2,
Minimum to 1, and Maximum to 2. On the following screens accept all other defaults, and on
the Review screen click on Create Auto Scaling Group. Wait till your instances are up and
running as seen in Instances screen of EC2 service.
Â
Â
Create Load Balancer
console, and click on EC2.
Â
Â
Â
Create.
Â
Load Balancer name: LAB625-LB
Leave all of the other settings as defaults (indicated below):
Create LB inside: DEFAULT SETTING
Create an internal load balancer: Unchecked
Enable advanced VPC configuration: Unchecked
Load balancer protocol: HTTP
Load balancer port: 80
Instance Protocol: HTTP
Instance port: 80
Â
Â
your launch configuration in Step 9, and unselect any others.
Â
Settings.
*Ignore the security warning. We are not using SSL in this course.
Â
Â
Ping Protocol: HTTP
Ping Port: 80
Ping Path: /index.html
Response Timeout: 5 seconds
Interval: 30 seconds
Unhealthy threshold: 2
Healthy threshold: 10
Â
Â
from your auto scaling group in the link step 39.
Â
Tagging helps you to manage your instances, images, and other resources in Amazon EC2.
To learn more about tagging, you can explore the Tagging Your Amazon EC2 Resources
page.
Â
Key: Name
Value: Webserver
Â
Â
Â
Â
Groups console, select your group, and in the Details tab, scroll down to the Load balancing
section, click on Edit and select your Classic load balancer LAB625-LB. Click Update.
Â
balancer.
EXAMPLE: LAB625-LB-1234567890.us-east-1.elb.amazonaws.com
Â
Configure Security
Security Groups menu in the AWS console, and click on it.
Â
of your Auto Scaling Group, and in the Actions menu click on Edit inbound rules.
Â
Type: HTTP
Protocol: TCP
Port Range: 80
Source: Anywhere
Add a new rule for SSH with the following settings:
Type: SSH
Protocol: TCP
Port Range: 22
Source: Anywhere
Â
Â
EXAMPLE: 64.23.23.43
STEP 2: Test Web Services Migration
Â
In the previous step, you built out infrastructure on AWS as a proof of concept to support BallotOnline’s website.
Now, you will configure the EC2 instances with NGIX, a widely used web service and test the migration of the BallotOnline web site to these EC2 instances.
BallotOnline is concerned about performing an actual migration, so you will instead deploy the company’s website code to the web servers that you configured in the previous step. The current webmaster of the BallotOnline website has provided you with the files to migrate to AWS.
Lab 2: Web Services Test Migration Lab
Â
Overview
In this lab, you will configure the new BallotOnline web servers and migrate the BallotOnline website. You will build out new web services on each of your AWS EC2 instances and migrate the BallotOnline website to them.
Â
After you complete this lab, you will have two web server instances behind a load balancer with auto-scaling enabled. This permits the website to remain available even if one of your instances is down for maintenance.
Â
Connect to Your Instances
Â
Â
Â
Â
Â
Â
Below are the specific instructions to use PuTTY to connect to your EC2 instance from a pre-Windows 10 system.
Â
Download PuTTY (pre-Windows 10) or Use SSH (Windows 10/Linux/Mac OS)
Â
Installing Security Updates
Â
sudo yum update
Â
The instructions are for updating the yum installer. The sudo command is used to perform the update as a superuser.
Â
Whenever you are entering commands, pay close attention to the spelling and spacing. If you get error messages, it’s probably because the command is not typed correctly.
Â
Notice that there are spaces between commands. We typed sudo [space] yum [space] update.
Â
Â
y
Â
and press Enter.
Â
When the installation is complete, you will see “Complete!†on the screen as shown below.
Â
A screenshot of ec2 shell showing “Complete!”
Once the yum installer is updated, you will install nginx, which is a web server software for Linux.
Â
Install nginx
Â
 sudo amazon-linux-extras install nginx1
Then, press Enter or Return.
Â
Â
Again, enter the following in the command line:
Â
y
Then, press Enter or Return.
Â
Upon successful completion of the installation, you will again see “Complete!†on the screen. If you did not get this, double check your commands to make sure you have typed them in correctly.
Â
Â
sudo mkdir –p /data/www
Press Enter or Return.
Â
Â
cd /data/www
Â
Enter the following in the command line and then press Enter or Return.
Â
sudo wget www.ballotonline.biz/website.zip
Â
Enter the following in the command line and then press Enter or Return.
Â
sudo unzip website.zip -d /data/www/BallotOnline
cat /data/www/BallotOnline/index.html
You now should see html code similar to the screen below, starting with <!DOCTYPE html>
Â
A screenshot of the content of the index.html file.
Update Website Permissions
Â
sudo chmod -R 755 /data/www/BallotOnline
Replace the default nginx configuration file (located in /etc/nginx/nginx.conf) with the one that is provided within the zip file that you have downloaded and unzipped.
Â
Enter the following in the command line and then press Enter or Return.
Â
sudo mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf.old
You can confirm that the nginx.conf is no longer there by typing this command and then pressing Enter or Return.
cat /etc/nginx/nginx.conf
Note: You should receive an error “No such file or directory”
Â
Â
Enter the following in the command line and then press Enter or Return.
Â
sudo cp /data/www/BallotOnline/nginx.conf /etc/nginx/
You should now have a file named nginx.conf in the /etc/nginx directory.
Â
To double-check, type the following in the command line and then press Enter or Return.
Â
cat /etc/nginx/nginx.conf
You should see the content of nginx.conf from the /etc/nginx directory.
Â
Â
sudo nginx
Note: If you already started nginx for some reason, then you must reload the configuration with: sudo nginx –s reload.
Â
Test the Web Server
Â
http://NN.NN.NN.NN/index.html
21.After you’ve made sure your instance is configured correctly and serves the BallotOnline web page, you will create the AMI (Amazon Machine Image) from the instance.
Â
In the Instances list of the EC2 service dashboard, select your instance, and then click on Actions – Images and Templates – Create Image.
Â
In the Create Image screen, put in a name of LAB 625 P3 Web Server Image, and click Create Image at the bottom. Your image will be created. You can verify it by clicking on AMI under Images on the left in the dashboard.
Â
Â
To remedy this, you will create a new Launch Configuration specifying the AMI created above and starting nginx upon initial instance launch. You will then update your auto-scaling group so that it uses the new launch configuration
Â
In the EC2 dashboard, under Auto Scaling, click on Launch Configurations, and then on Create Launch Configuration. Give it a name like LAB 625 Lab New, and for Amazon Machine Image drop down the list and select your newly created LAB 625 P3 Web Server Image. You should find it among Owned By Me images.
Â
For Instance Type, select t2.micro, as before. Under Additional Configuration – Optional, check the box to enable Enable EC2 instance detailed monitoring with CloudWatch. Then, in the drop down Advanced details, and under User Data, click on As Text and enter the following two lines in the box:
Â
screenshot of text entered into the User Data box (with the “As text” option selected) that reads #!/bin/bash on the first line and nginx on the second line
Source: Amazon
Â
This will ensure nginx is started up at each instance launch. User Data commands are run as a super user, so no need for sudo. See User Data for more information.
Â
Scroll down to Security Groups, click on Select an Existing Security Group, and choose the auto-scaling security group you created in Project 3 Step 1, with SSH and HTTP inbound rules.
Â
For key pair, select again your key pair you created in Step 1 of Project 3, making sure you have the private key file (.pem) handy. Double check everything. Check the Acknowledgement at the bottom, and then click on Create Launch Configuration. Verify that it shows in the Launch Configurations list under Auto Scaling.
Â
Step 3: Prepare a Test-Environment Monitoring Dashboard
In this step, you will learn how AWS CloudWatch can be used to monitor system performance. You will create a CloudWatch dashboard in this step to monitor the resources in your test environment.
In addition to system performance, cloud users can also monitor their billing charges being accrued as cloud resources are provisioned and used. AWS provides a special set of metrics for monitoring billing charges, which can be used to set up a billing dashboard. You will not work with billing dashboards in this course, but it is worthwhile to know what they are and how to use them.
Â
Lab 3: Prepare Measurements and Dashboard
Â
Set Up Amazon CloudWatch Service Dashboard for BallotOnline
Now you will configure the CloudWatch Service dashboard for BallotOnline.
Â
Â
Â
Â
Â
Â
following:
BallotOnline Load Balancer Stats
Click the checkmark icon to save the change.
Â
you will add is for the Elastic Load Balancer.
Â
Â
You will need to select the checkbox for the following metrics (skip the metric if you do not
see it in the Per-LB metrics list):
Metric Purpose
☑”#$ HealthyHostCount Displays the number of healthy EC2 instances in the load
balancer pool
☑”#$
EstimatedALBActiveConnectionCount
Displays the number of active connections to the load
balancer
☑”#$ UnHealthyHostCount Displays the number of unhealthy EC2 instances in the load
balancer pool
☑”#$ HTTPCode_ELB_5XX Displays the number of HTTP 5xx codes returned by the
load balance
☑”#$ HTTPCode_Backend_4XX Displays the number of HTTP 4xx codes returned by the
load balancer
Â
Â
Â
Â
At the top of the screen, select 1d.
Â
following:
BallotOnline Load Balancer Graph
Click the checkmark icon to save the change.
Â
you will add is for the Elastic Load Balancer.
Â
Â
You will need to select the checkbox for the following metrics (skip the metric if you do not
see it in the Per-LB metrics list):
Metric Purpose
☑”#$ HealthyHostCount Displays the number of healthy EC2 instances in the load
balancer pool
☑”#$
EstimatedALBActiveConnectionCount
Displays the number of active connections to the load
balancer
☑”#$ UnHealthyHostCount Displays the number of unhealthy EC2 instances in the load
balancer pool
☑”#$ HTTPCode_ELB_5XX Displays the number of HTTP 5xx codes returned by the
load balancer
☑”#$ HTTPCode_Backend_4XX Displays the number of HTTP 4xx codes returned by the
load balancer
Â
Â
and drag to enlarge until the graph is the same size as the stats window above.
Â
Â
Â
Â
following:
BallotOnline Auto-Scaling Group Metrics
Click the checkmark icon to save the change.
Â
you will add is for the Auto Scaling Group.
Â
Â
You will need to select the checkbox for the following metrics:
Metric Purpose
☑”#$ NetworkOut Displays the outbound network traffic
☑”#$ NetworkIn Displays the inbound network traffic
☑”#$ CPUUtilization Displays the CPU utilization for the entire auto-scaling group
Click Create Widget.
Â
Â
Â
monitoring.
Â
instructions as above to add them. You may add metrics and display them as line, stacked,
or number graphs. You may add the same metrics as in the steps above, but you need to
display them using a different graph type (i.e., if they are a number graph, then you need to
display as either line or stacked).
Â
Step 4: Cause Site Outages and Report Results
Â
Part of the development process includes anticipating possible problems that may come up, testing them, and capturing the results in the monitoring dashboard. In order to do that, you will perform another lab.
Lab 4 Cause Site Outages and Report Results
Â
You are required to submit a lab report to the assignment dropbox in Project 3, Step 4. Throughout
the steps below within this lab, you will see indicators labeled with LAB REPORT. At those points,
you should incorporate an item from that step into your report.
Examples include screenshots of your progress, URLs for running AWS instances, and summaries
of your progress.
Â
Write a paragraph in your lab report summarizing what you expect to get out of this lab assignment,
how you expect it to help you in the Cloud Computing program at UNIVERSITY, and whether you foresee
complications in completing the labs.
Â
Console” button, and select the CloudWatch service.
If your AWS resources do not appear, check to see if the correct region is selected. If not,
use the navigation bar to change the region to the region where your AWS resources are
located.
Â
Â
Used with permission from Amazon Web Services.
Â
LAB REPORT
Take a screenshot of your CloudWatch dashboard before proceeding and insert it into your
lab report. You should also write a paragraph explaining how you expect your CloudWatch
dashboard to be affected by the activities in this lab.
Â
Example:
http://LAB625-LB-1234567890.us-east-1.elb.amazonaws.com
Â
end of the BallotOnline New Web Service URL from the previous step.
Example:
http://LAB625-LB-1234567890.us-east-1.elb.amazonaws.com/this-page-does-not-exist.html
LAB REPORT
Take a screenshot of the results that you receive in your browser and insert it into your lab
report.
Â
nonexistent webpage 20 times.
Â
You should see the following types of changes in your dashboard:
EstimatedALBActiveConnectionCount should substantially increase.
HTTPCode_Backend_4XX count should increase.
LAB REPORT
Take a screenshot of the dashboard and insert it into your lab report. Write a paragraph
explaining why the dashboard changed and provide some examples of other activities that
could affect the dashboard.
Â
nginx is running on each instance:
netstat -an | grep 80 | grep LISTEN
You should see the following output:
TCP 0 0.0.0.0:80 0.0.0.0:* LISTEN
Â
line:
sudo nginx -s stop
Â
netstat -an | grep 80 | grep LISTEN
You should not see any output from the above command.
Â
UnHealthyHostCount increasing as in the screenshot below. If you don’t see any change,
wait a few minutes, and click on Refresh again. It may take a few minutes for CloudWatch to
scan the systems.
Used with permission from Amazon Web Services.
Use the mouse to zoom in on the graph to look at it in more detail:
Â
(the Load Balancer URL) to confirm that the site is still available with one instance down.
Example:
http://LAB625-LB-1234567890.us-east-1.elb.amazonaws.com/index.html
If you can successfully connect to the BallotOnline website, then your load balancer is
working properly.
Â
LAB REPORT
Take a screenshot of your CloudWatch dashboard and the BallotOnline website (including
the URL) and insert it into your report along with your observations during this portion of the
lab.
Â
Â
have stopped it on one of our instances):
netstat -an | grep 80 | grep LISTEN
You should see the following output:
 TCP 0 0.0.0.0:80 0.0.0.0:* LISTEN
Â
sudo nginx -s stop
Â
netstat -an | grep 80 | grep LISTEN
You should not see any output from the above command.
Â
to confirm that the site is no longer available with both instances down.
Example:
http://LAB625-LB-1234567890.us-east-1.elb.amazonaws.com/index.html
If you can no longer connect to the BallotOnline website, then you have successfully caused
a complete outage of the site by shutting down the service on both instances.
Â
Select 1 Minutes.
Used with permission from Amazon Web Services.
Click on the Refresh button.
You should see the UnhealthyHostCount equal to the number of instances that you have,
and the HealthyHostCount as 0.
From a service-level perspective, it is important that you always have instances available
behind your load balancer. For this lab, we only have two instances, so you can lose one of
them and still maintain availability of the service.
Â
LAB REPORT
Take a screenshot of your CloudWatch dashboard and analyze what actions you could take
to minimize the likelihood of outages and ensure compliance with your service-level
requirements. Your analysis should be at least two paragraphs in length.
Now that you’ve successfully caused a service outage, and seen what it can do to your site,
you can stop and terminate your AWS infrastructure. Remember, billing continues
until you terminate your infrastructure.
Get The Overcrowded Lifeboat Homework Help Here!!
Stop and Terminate AWS Infrastructure
Warning: Do not perform the steps in this section until you are finished with all the labs in
Project 3, have submitted all your lab reports, and have a grade that meets project
requirements.
Â
Â
Â
with Delete Dashboard.
Â
Â
Â
Â
Â
Â
Â
prompted, click Yes, Terminate. Repeat for both instances.
Â
Â
Step 5: Submit Final Report to Executive Management
Â
In the previous step, you performed a test migration of BallotOnline’s web services to AWS. Now, you will document the lessons learned during the buildout of the AWS environments and your test migration in your final report to BallotOnline management.
Here are some areas to consider:
What challenges did you encounter while building out the AWS environment?
Did you encounter any errors while building out the AWS environment? If so, elaborate.
Did you encounter any issues while testing the migration? If so, elaborate.
Compile a final report for management that includes an executive summary, all lab reports, and lessons learned, and a summary of the lessons learned from the project.
Use the Final Report to Executive Management Template to submit your work to the assignment dropbox below.
Step 5: Submit Final Report to Executive Management
In the previous step, you performed a test migration of BallotOnline’s web services to AWS. Now, you will document the lessons learned during the buildout of the AWS environments and your test migration in your final report to BallotOnline management.
Here are some areas to consider:
Compile a final report for management that includes an executive summary, all lab reports, and lessons learned, and a summary of the lessons learned from the project.
Use the Final Report to Executive Management Template to submit your work to the assignment dropbox below.
Executive Summary
An executive summary, as described by the Writing Center at University, “summarizes or reviews the main points of a longer document or report for a reader that does not have time to read the entire report. An effective executive summary analyzes and summarizes the most important points in the paper or report, and will often make a recommendation based on the analysis. Executive summaries are ‘stand-alone’ documents that are almost always read independently of the reports they summarize” (UNIVERSITY, n.d.).
In a workplace setting, an executive summary is the mechanism by which you will attract an executive’s attention and should concisely summarize the materials that you are presenting.
While there isn’t a single acceptable format, an executive summary briefly (one to two pages) addresses these critical areas:
Your final report should be eight to 12 pages in length in either Microsoft Word or PDF. The report should contain the following headings:
Why Choose Us
Quality Papers
We value our clients. For this reason, we ensure that each paper is written carefully as per the instructions provided by the client. Our editing team also checks all the papers to ensure that they have been completed as per the expectations.
Professional Academic Writers
Over the years, our Acme Homework has managed to secure the most qualified, reliable and experienced team of writers. The company has also ensured continued training and development of the team members to ensure that it keep up with the rising Academic Trends.
Affordable Prices
Our prices are fairly priced in such a way that ensures affordability. Additionally, you can get a free price quotation by clicking on the "Place Order" button.
On-Time delivery
We pay strict attention on deadlines. For this reason, we ensure that all papers are submitted earlier, even before the deadline indicated by the customer. For this reason, the client can go through the work and review everything.
100% Originality
At Grade One Essays, all papers are plagiarism-free as they are written from scratch. We have taken strict measures to ensure that there is no similarity on all papers and that citations are included as per the standards set.
Customer Support 24/7
Our support team is readily available to provide any guidance/help on our platform at any time of the day/night. Feel free to contact us via the Chat window or support email: support@gradeoneessays.com.
Try it now!
How it works?
Follow these simple steps to get your paper done
Place your order
Fill in the order form and provide all details of your assignment.
Proceed with the payment
Choose the payment system that suits you most.
Receive the final file
Once your paper is ready, we will email it to you.
Our Services
Grade One Essays has stood as the world’s leading custom essay writing services providers. Once you enter all the details in the order form under the place order button, the rest is up to us.
Essays
At Grade One Essays, we prioritize on all aspects that bring about a good grade such as impeccable grammar, proper structure, zero-plagiarism and conformance to guidelines. Our experienced team of writers will help you completed your essays and other assignments.
Admissions
Admission and Business Papers
Be assured that you’ll definitely get accepted to the Master’s level program at any university once you enter all the details in the order form. We won’t leave you here; we will also help you secure a good position in your aspired workplace by creating an outstanding resume or portfolio once you place an order.
Editing
Editing and Proofreading
Our skilled editing and writing team will help you restructure you paper, paraphrase, correct grammar and replace plagiarized sections on your paper just on time. The service is geared toward eliminating any mistakes and rather enhancing better quality.
Coursework
Technical papers
We have writers in almost all fields including the most technical fields. You don’t have to worry about the complexity of your paper. Simply enter as much details as possible in the place order section.