banner



How To Access Amazon Ec2 Windows Instance From Browser

In this tutorial, we will learn how to launch an EC2 Server, the Ubuntu Linux Virtual Server and host a website by serving index.html.

What is AWS?


Amazon Web Services (AWS) is an Amazon subsidiary which offers cloud-computing services at very affordable rates, therefore making its customer base.

Key AWS Services are EC2, RDS, S3, and CloudFront. There are a total of 140+ services which covers compute, storage, databases, analytics, networking, mobile, developer tools,
management tools, IoT, security, and enterprise applications.

Amazon EC2 Instance

Amazon Elastic Compute Cloud (Amazon EC2) provides scalable computing capacity in the AWS Cloud. In other words, information technology provides us with a virtual server with different capacities to best adjust your needs. Amazon EC2 enables you lot to scale up or downwardly to handle changes in requirements or spikes in traffic with ease

An on-demand EC2 instance from AWS is one in which the user can hire the virtual server per 60 minutes and use it to deploy his/her own applications.

Step 1: Launch an Instance



  • Log into the AWS panel.

  • From the top correct corner of the EC2 dashboard, choose the AWS Region in which you want to launch the EC2 server.

  • From the dashboard, cull Launch Instance.

Cull Amazon Motorcar Epitome (AMI)

Amazon Machine Image or more usually known as AMI which includes an operating system, and required software/Applications which depends on AMI.

For our example, we will apply Ubuntu Server 18.04 LTS (HVM), SSD Volume Type (This image is free tier eligible).

Click Select to choose AMI.

Choose EC2 Instance Types

In the next step, nosotros need to cull the case type. For our case, nosotros will apply t2.microwhich is free tier eligible.

Configure the Instance

For our example, we can get out default settings.

Number of Case – How many Instances you wish to launch, one in our case.

Purchasing Options – Launching in On-Demand pricing (Nosotros tin also cull spot instance)

Read more than on Spot Instances.

I will write a detailed description on full settings later.


Click on Next: Add together Storage.

Add Storage

Elastic Beanstalk (EBS) Book is a Virtual Hd in the cloud.

Volume type Root indicates that Root volume volition be partition from where our OS will boot.

We can add additional partitions if we desire by clicking Add New Book.

Delete on Termination ways the EBS will be deleted if we delete the EC2 instance.


Add Tags (optional)

Add tags provides a key-value pair to marking your example, It can be used for meliorate cost analysis.

It is very useful in instance of large infrastructures with many Instances.

Click Next: Create a Security Group.

To read more on Tags read here.

Configure Security Groups

Security Groups are like firewalls that define what blazon of traffic we want to allow.

Since we wish to SSH (port – 22) into our EC2 Server and allow web traffic through HTTP (port – 80) and HTTPS (port – 443).

We volition also prepare the source as My IP for SSH and for web traffic i.e., HTTP and HTTPS we volition put Anywhere.



Click Review and Launch.

Review Instances

Review the instance settings and hit launch.

We volition get a dialog where nosotros will create a Public and Private key pair. The individual key is stored in Example and the public cardinal is given to user do not let anyone know your public or individual primal otherwise they may use it to compromise your virtual machines.



Click on Download Fundamental Pair to download central pair and keep it safety.

Later a successful launch of instance, you will be taken to the Instance screen.

When the status of Server change from pending to running, you tin SSH into your Server to perform admission.

SSH into our machine and install the webserver.

Check your public accost from instance details or assign an elastic IP.

Later allocating accost yous must attach information technology to your Server.

Choose an Case from the drop-downwards carte du jour and click Associate to attach it to Server.

Now we need to SSH into our server (Here nosotros are using AWS Dashboard simply we can also use putty or terminal to access SSH, more than on that afterwards ).

          ssh -i <path_to_key_pair_file> ubuntu@<public_ip_from_dashboard>        

Let's sign information technology to superuser (root) past –

sudo su

Now allow'south update all services/packages and install apache web server –

          apt-go update  apt-get install apache2        

At present let's first the service:

service apache2 start Server index.html

You must have your files to be served

Past default apache2 spider web server serves a index.html from location /var/world wide web/html, now lets copy your code and paste in this directory (/var/world wide web/html).

Nosotros need to reload apache2 web server now. Type the post-obit command:

service apache2 reload

Now allow's bank check on the browser if our website through alphabetize.html is served or not.

Copy public address or Elastic IP of your Server from EC2 panel by selecting your Server and paste it on the browser.

Source: https://dzone.com/articles/aws-ec2-how-to-launch-an-instance-and-host-a-websi

Posted by: biaswitts1999.blogspot.com

0 Response to "How To Access Amazon Ec2 Windows Instance From Browser"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel