How to create EC2 instance in AWS

Posted on by By admin, in AWS | 0

In this blog we are exploring How to create EC2 instance in AWS. An Amazon EC2 instance is a virtual server in Amazon’s Elastic Compute Cloud (EC2) for running applications on the Amazon Web Services (AWS) infrastructure.
In simple words, a server running our application is called an instance. So let us try and create a instance in AWS by following the below steps.

STEP 1: Login to the console and go to services there click on ec2 instance.

How to create EC2 instance in AWS

STEP 2: Once ec2 instance is opened than click on launch instances

How to create EC2 instance in AWS

STEP 3: Choose an AMI(amazon machine image)(select free trail for learning) for Linux

How to create EC2 instance in AWS

STEP 4: Choose the instance type (means memory and the number of cpu’s)

How to create EC2 instance in AWS

STEP 5: Configure the instances (choose default vpc and subnet at first instance creation).

How to create EC2 instance in AWS

STEP 6: Add the storage details for your instance here.

How to create EC2 instance in AWS

STEP 7: Add the tags Name as key and value for that

How to create EC2 instance in AWS

STEP 8: Configure security group add HTTP also to enable the view in web page.

How to create EC2 instance in AWS

STEP 9: Go to services and ec2, the instance have been launched and now copy the ipv4 ip address.

How to create EC2 instance in AWS

STEP 10: Open mobaxterm /putty to login to Linux server

How to create EC2 instance in AWS

STEP 11: Copy the IP address in remote host and specify username as ec2-user for Linux.
Use private key and browse it (.pem)file which is in downloads

How to create EC2 instance in AWS

Few commands to be used:

sudo su

systemctl enable httpd.service

yum update

systemctl status httpd.service

yum install httpd

cd /var/www/html

systemctl start

STEP 12: Now we have logged in to the server

How to create EC2 instance in AWS

STEP 13: sudosu command to become super administrator /super user.

How to create EC2 instance in AWS

STEP 14: To install Apache server yum install httpd to deploy in website we need apache.

How to create EC2 instance in AWS

STEP 15: Httpd installing……….press y and enter to continue

How to create EC2 instance in AWS

STEP 16: Now start Apache using systemctl start httpd.service

How to create EC2 instance in AWS

STEP 17: Now enable Apache using systemctl enable httpd.service

How to create EC2 instance in AWS

STEP 18: Go to html folder to deploy the files in webpage using cd /var/www/html

How to create EC2 instance in AWS

STEP 19: Now we will be in html folder, Using nano index.html create index file and write something.

How to create EC2 instance in AWS

STEP 20: Write something and save the file using ctrl+x and press y

How to create EC2 instance in AWS

STEP 21: Open google and copy paste the ipv4 ip address

How to create EC2 instance in AWS

STEP 22: The File is deployed in the website……..!!

How to create EC2 instance in AWS

Successfully Created Instance And Deployed Sample File In The Website !

Thank You
Pooja TS
Helical IT Solutions

logo

Best Open Source Business Intelligence Software Helical Insight is Here

logo

A Business Intelligence Framework

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments