0% found this document useful (0 votes)
4 views14 pages

567-herovired-assignment

Uploaded by

prudhvichukka5
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views14 pages

567-herovired-assignment

Uploaded by

prudhvichukka5
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 14

CH.

Prudhvi-20A91A0576

Amazon EC2-
Amazon Elastic Compute Cloud is a web service that provides secure, resizable
compute capacity in the cloud.
Amazon EC2 provides cloud hosted virtual machines, called “instances”, to run
applications.
To launch a instance:
Step-1: Choose an Amazon Machine Image
Step-2: Choose an instance type
Step-3: Configure instance
Step-4: Add storage
Step-5: Add tags
Step-6: Configure security group
Step-7: review launch instance and select key pair

1. EC2 instance launch page


2. EC2 name and tag creation

3. EC2 AMI selection


4. EC2 keypair selection
5. EC2 security group creation (SSH, HTTP, HTTPS)
6. EC2 VPC and subnet selection

7. EC2 EBS volume selection


8. User data insertion page
#!/bin/bash
yum update -
y
yum install httpd -y
service httpd start
chkconfig httpd on
IP_ADDR=$(curl http://169.254.169.254/latest/meta-data/public-ipv4)
echo "Manual instance with IP $IP_ADDR" >
/var/www/html/index.html

9. EC2 instance logs


10. EC2 instance running state

11. EC2 summary page with Public and Private IP


12. EC2 instance monitoring page
Installing a simple http web server
Commands:
 sudo yum update
 sudo yum install httpd -y
 sudo service httpd start
 sudosystemctl start httpd
Access the site from a browser

Connect to the instance via SSH


13. SSH access of EC2 instance in local machine
14. Browsing EC2 instance in the browser local machine

Terminate an instance
15. Terminating the resource

You might also like