DEV Community

Cover image for How to install an iis web server on Amazon Ec2 instance
Ugonna
Ugonna

Posted on

How to install an iis web server on Amazon Ec2 instance

Amazon Web Service EC2 (Amazon Elastic Compute Cloud), one of Amazon Web Services' widely-known services, offering businesses the ability to run applications on the public cloud. An EC2 instance is simply a virtual server in Amazon Web Services terminology.
Amazon Elastic Compute Cloud (Amazon EC2) offers the broadest and deepest compute platform, with over 750 instances and choice of the latest processor, storage, networking, operating system, and purchase model to help you best match the needs of your workload. We are the first major cloud provider that supports Intel, AMD, and Arm processors, the only cloud with on-demand EC2 Mac instances, and the only cloud with 400 Gbps Ethernet networking. We offer the best price performance for machine learning training, as well as the lowest cost per inference instances in the cloud. More SAP, high performance computing (HPC), ML, and Windows workloads run on AWS than any other cloud.
What is IIS Web Server: (Internet Information Services)?
is a process for hosting web applications. The web server allows an application to process messages that arrive through specific TCP ports.
Firstly, search in google aws management console
Image description
After searching, then signin into your accountImage description
It takes you to the aws console home page
Image description
In the console home page at the search bar on the top left hand corner, search for Ec2 instance and press enter
Image description
Next, click on launch instances
Image description
On the next page, name and add tags. Name it ugoec2
Image description
On the top right corner, just before name of account, select desired region. Change the region from the previous Stockholm to London
Image description
Next to be added is Operating System image. Under quick start select windows
Image description
Under Amazon Machine Image (AMI) select Microsoft Windowers Server 2025 Base -free tier eligible
Image description
In instance type, select t3.micro
Image description
In key pair name - required select create new key pair
Image description
Next name the keypair ugokeypair. leave the east as default and click create key pair
Image description
Scroll to Firewalls(security groups) and Allow RDP traffic from anywhere and Allow HTTP traffic from the internet
Image description
Leave the rest as default and click launch instance
Image description
Instance, successfully launched
Image description
On the top left hand corner, select Ec2
Image description
Under resources, click on instances
Image description
Click on ugoec2 and select the connect button
Image description
Under connect to instance, select RDP Client
Image description
Scroll down and click on download remote desktop file
Image description
In password, click get password
Image description
Under private, click upload private key file
Image description
Then in the download of your computer select ugokeypair that was downloaded earlier
Image description
Then click decrypt password
Image description
Copy the dycrpted passwood
Image description
Go to the RDP file downloaded earlier and open and connect to it. Then paste password and click ok
Image description
A windows server has being connected to
Image description
Search for power shell in the windows server and run as administrator to create web server role and type Install-WindowsFeature -Name Web-Server -IncludeManagementTools and press enter
Image description. The above image has the common feature of a web server.
Go to the EC2 created and copy the ip address
Image description
Paste the ip address on a web browser to view the internet information services (iis) web server.
Image description

Top comments (0)