Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Cloud Computing Assignment 1: Hosting a Website on Amazon EC2, Assignments of Web Application Development

This assignment guides students through the process of hosting a website on amazon ec2, a cloud computing service. It covers key concepts like amazon ec2, amis, elastic ips, and network interfaces. The assignment includes step-by-step instructions and demonstrations for configuring, deploying, and managing virtual machines and networks. Students will learn how to launch an instance, configure instance details, add storage, create an ami, and associate an elastic ip address with an instance.

Typology: Assignments

2020/2021

Available from 02/02/2025

the-manku-store
the-manku-store 🇮🇳

8 documents

1 / 18

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
CLOUD COMPUTING: ASSIGNMENT 1
MAYANK SONI, AU17B1007
Task-1: Host your website inside EC2
What is Amazon EC2?
Features of Amazon EC2
Accessing Amazon EC2
Amazon Elastic Compute Cloud (Amazon EC2) provides scalable computing capacity in the Amazon Web
Services (AWS) cloud. EC2 helps in develop and deploy applications faster. Amazon EC2 allow users to
launch as many or as few virtual servers as per the requirements, configure security and networking, and
manage storage. Amazon EC2 enables users to scale up or down to handle changes in requirements of the
traffic.
Amazon EC2 provides the following features:
- Virtual computing environments, known as instances.
- Preconfigured templates for instances, known as Amazon Machine Images (AMIs).
- Various configurations of CPU, memory, storage, and networking capacity for instances, known as
instance types.
- Secure login information for instances using key pairs.
- Storage volumes for temporary data that’s deleted when instance is stopped or terminate, known as
instance store volumes.
- Multiple physical locations for resources, such as instances, known as Regions and Availability Zones.
- A firewall that enables user to specify the protocols, ports, and source IP ranges that can reach to
instances using security groups.
- Static IPv4 addresses for dynamic cloud computing, known as Elastic IP addresses.
- Metadata, known as tags, that can assigned to Amazon EC2 resources.
Amazon EC2 provides a web-based user interface, the Amazon EC2 console. If user signed up for an AWS
account, user can access the Amazon EC2 console by signing into the AWS Management Console and
selecting EC2 from the console home page.
Few other options to get access:
- AWS Command Line Interface (CLI) which provides commands for a broad set of AWS products, and
is supported on Windows, Mac, and Linux.
- AWS Tools for Windows PowerShell which provides commands for a broad set of AWS products for
those who script in the PowerShell environment.
- Amazon EC2 provides a Query API. These requests are HTTP or HTTPS requests that use the HTTP
verbs GET or POST and a Query parameter named Action.
- AWS also provides libraries, sample code, tutorials, and other resources for software developers. These
libraries provide basic functions that automate tasks such as cryptographically signing your requests,
retrying requests, and handling error responses.
Problem Statement: Configure, deploy, and manage virtual machines and networks.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12

Partial preview of the text

Download Cloud Computing Assignment 1: Hosting a Website on Amazon EC2 and more Assignments Web Application Development in PDF only on Docsity!

CLOUD COMPUTING: ASSIGNMENT 1

MAYANK SONI, AU17B

Task-1: Host your website inside EC

**- What is Amazon EC2?

  • Features of Amazon EC
  • Accessing Amazon EC** Amazon Elastic Compute Cloud (Amazon EC2) provides scalable computing capacity in the Amazon Web Services (AWS) cloud. EC2 helps in develop and deploy applications faster. Amazon EC2 allow users to launch as many or as few virtual servers as per the requirements, configure security and networking, and manage storage. Amazon EC2 enables users to scale up or down to handle changes in requirements of the traffic. Amazon EC2 provides the following features:
  • Virtual computing environments, known as instances.
  • Preconfigured templates for instances, known as Amazon Machine Images (AMIs).
  • Various configurations of CPU, memory, storage, and networking capacity for instances, known as instance types.
  • Secure login information for instances using key pairs.
  • Storage volumes for temporary data that’s deleted when instance is stopped or terminate, known as instance store volumes.
  • Multiple physical locations for resources, such as instances, known as Regions and Availability Zones.
  • A firewall that enables user to specify the protocols, ports, and source IP ranges that can reach to instances using security groups.
  • Static IPv4 addresses for dynamic cloud computing, known as Elastic IP addresses.
  • Metadata, known as tags, that can assigned to Amazon EC2 resources. Amazon EC2 provides a web-based user interface, the Amazon EC2 console. If user signed up for an AWS account, user can access the Amazon EC2 console by signing into the AWS Management Console and selecting EC2 from the console home page. Few other options to get access:
  • AWS Command Line Interface (CLI) which provides commands for a broad set of AWS products, and is supported on Windows, Mac, and Linux.
  • AWS Tools for Windows PowerShell which provides commands for a broad set of AWS products for those who script in the PowerShell environment.
  • Amazon EC2 provides a Query API. These requests are HTTP or HTTPS requests that use the HTTP verbs GET or POST and a Query parameter named Action.
  • AWS also provides libraries, sample code, tutorials, and other resources for software developers. These libraries provide basic functions that automate tasks such as cryptographically signing your requests, retrying requests, and handling error responses. Problem Statement: Configure, deploy, and manage virtual machines and networks.

- Demonstration

  • Select Region and check status available zones.
  • Launch instance.
  • Selecting instance ( Amazon Linux 2 )
  • Adding storage
  • Adding tag to the instance
  • Configuring security group
  • Selecting key pairs
  • Instance is launched
  • Test page: Which tells Apache HTTP server is installed successfully Alloted public IP
  • To open Nano editor: used command sudo nano index
  • HTML/CSS code under index.html file
  • To check status of Apache HTTP server: Command used status http.service
  • Website is successfully deployed in EC2 (Public IP:13.233.142.158)
  • To create Image: Right click on the instance image/create image
  • Add name, description
  • Go to launch
  • Selecting instance
  • Under instance details: user data kept empty

- What is Elastic IP? An Elastic IP is a static IPv4 address designed for dynamic cloud computing. An Elastic IP is associated with AWS account. With an Elastic IP, user can mask the failure of an instance or software by rapidly remapping the address to another instance in the account. An Elastic IP address is a public IPv4 address, which is reachable from the internet. If instance does not have a public IPv4 address, user can associate an Elastic IP address with your instance to enable communication with the internet. For example, this allows you to connect to your instance from your local computer. Task-3: Create an Elastic Network Interface. - Demonstration

  • In Elastic IPs: Allocate IP address
  • Select Amazon’s pool of IPv4 addresses
  • Elastic IP is created

Task-4: Assign Secondary IP

**- What is Network interfaces?

  • Features Network interfaces** An network interface is a virtual network interface where user can create a network interface, attach it to an instance, detach it from an instance, and attach it to another instance. A network interface’s attributes follow it as it is attached or detached from an instance and reattached to another instance. When user move a network interface from one instance to another, network traffic is redirected to the new instance. Elastic network interfaces provides the following features:
  • Create a management network.
  • Use network and security appliances in your VPC.
  • Create dual-homed instances with workloads/roles on distinct subnets.
  • Create a low-budget, high-availability solution. - Demonstration
  • Under Network interfaces: Select Create Network Interface
  • Enter Description, Subnet, Security group, Key, Value
  • Right click on the network interface and select Attach