Cloud Computing Architecture Assignment - Swinburne University

Download Solution Order New Solution

Assignment Task

Objectives

This assignment has the following objectives:

1. Get familiar with the AWS management console.

2. Launch your own EC2 instance.

3. Deploy your first PHP web page (PhotoAlbum) on Apache web server on your EC2 instance.

AWS Accounts

You have a choice of accounts/environments you can use to complete the assignments in this unit.

1. AWS Academy Learner Lab (recommended): accessible through AWS Canvas. Note that this is NOT the sandbox in ACA/ACF courses that you use for your weekly labs. This is a managed environment that allows your tutor to gain access to your AWS console so your work can be marked/troubleshooted. This class gives you US$100 credit. Use it carefully. This account is deleted at the end of the semester.

2. Regular AWS account (NOT recommended): new AWS accounts are eligible for a free tier. This gives you more freedom, but you need to be careful as you will be charged for the services if you go outside the free tier offering. Make sure to keep track of your AWS services usage (using Billing & Cost Management Dashboard) throughout the semester to avoid paying fees. This account is on-going, but some services are no longer free after 12 months. If you choose this option, you will need to create a (read-only) IAM user and provide its credentials to your tutor so they can mark the assignment.

Launch your own Linux EC2 instance

Before launching an EC2 instance, a key pair is required for logging in to your instance in the future. For more details, see Remote Access to an EC2.pdf file. Then launch an EC2 instance from the AWS management console in US East (N. Virginia) us-east-1 region. It must have the following properties:

  •  Amazon Machine Image: Amazon Linux 2 AMI (HVM), SSD Volume Type
  • Instance type: t2.micro
  • Advanced Details – User data: Use the script in Auto Setup EC2 with script.pdf file to automatically set up and configure the Apache server, PHP, and MySQL at launch.
  • New security group named “WebServer-SG” that allows only necessary traffic types (SSH, HTTP, HTTPS) to reach the instance from anywhere. Do not allow every traffic types.

Other configurations should be left as default such as default Virtual Private Cloud (VPC), default subnet, etc.

Note: In this introductory assignment you will create an EC2 Web server in the default VPC. In general, the default VPC is suitable only for experimental / toy deployments, and its use is considered bad practice for production resources. In the next assignments, you will create your own secure VPC.

Allow a few minutes for the instance to launch and execute the commands in the above script, the Instance State and Status Check should change to ‘running’ and ‘2/2 checks passed’, respectively. After that, visitif you see a welcome page, it means the EC2 instance, PHP, and Apache server have been installed correctly.

Create a PHP website (Photo Album)

Create two PHP web pages (photouploader.php and photolookup.php) with user interfaces as illustrated in Figures 1 & 2. Feel free to individualise/style the web page as you wish.

The directory structure of your website is described below. You can create additional HTML, CSS, PHP, JavaScript files if needed. The Apache HTTP server serves files located in a directory called Apache document root the cos80001 folder must be in the Apache document root folder. Follow the instructions in Remote Access to an EC2.pdf file to learn how to transfer files to a Linux EC2 instance.

NOTE: You are not required to implement the actual functionalities of the website at this stage. After having the website deployed on the Apache server on your instance, your web page should be accessible from anywhere on the Internet via this URL:

This Cloud Computing has been solved by our PhD Experts at My Uni Paper.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.