loading...
Cover image for Launching One windows EC-2 Instance with IIS server On AWS

Launching One windows EC-2 Instance with IIS server On AWS

ashutoshpipriye profile image Ashutosh Pipriye ・3 min read

Launch one T2 micro type windows server instance on AWS. Configure an IIS server with a default web page.

  • About EC2
  • Setup EC2 Instance
  • Step wise installation.
  • Setup remote desktop connection.
  • Configure an IIS server with default page
  • start our created webpage.

Elastic Cloud Computing (EC2)

Amazon Elastic Compute Cloud (Amazon EC2) provides scalable computing capacity in the Amazon Web Services (AWS) cloud. Using Amazon EC2 eliminates your need to invest in hardware upfront, so you can develop and deploy applications faster. You can use Amazon EC2 to launch as many or as few virtual servers as you need, configure security and networking, and manage storage. Amazon EC2 enables you to scale up or down to handle changes in requirements or spikes in popularity, reducing your need to forecast traffic.

Setup EC2 Instance

Sign up on AWS at https://aws.amazon.com/ and make an account. You will need to enter your billing and credit card information.
Note: You should delete instances you no longer need to ignore any additional billing unknowingly.

Find and Select Amazon EC2 from listed products and services.
Click the button: "Launch Instance"

Step 1: Choose an Amazon Machine Image (AMI): This is the operating system your virtual machine in the cloud will be.

Alt Text

Step 3: Configure Instance Details: Leave the default settings. Click "Next: Add Storage"

Step 4: Add Storage: Leave the default settings. Click "Next: Add Tags"

Step 5: Add Tags: Create a key and value.

Step 6: Configure Security Group: Check the radio button labeled "create a new security group" and give it a name and description. Make sure there is an RDP type listed and add HTTP and HTTPS. Click "Review and Launch"

Alt Text

Step 7: Review Instance Launch: Click "Launch" The following window should appear. Select "Create a new key pair" and type in a name. Click "Download." Make sure you save this file!!! Click "launch instance" You should be redirected to a page where you can click "view instances" to see all your instances. Your new EC2 instance should appear and may take a few moments to initialize.

Alt Text

Setup remote desktop connection.

  • In the Connect To Your Instance popup, click Download Remote Desktop File to download the RDP file, already preconfigured for your EC2 instance.
  • In the same popup, click Get Password to obtain the authentication password.
  • Load your private key and click Decrypt Password. The password will then be visible in your screen.

Alt Text

You are now connected to your Windows Server machine.

Alt Text

Configure Internet Information Services (IIS)

Internet Information Services (IIS) is an extensible web server created by Microsoft and available in Windows machines. IIS may or may not be enabled by default in the Windows Server EC2 instance.

  1. In order to enable IIS, launch Server Manager and select Manage > Add Roles and Feature

Alt Text
Alt Text
Alt Text

2.In the Add Roles and Features Wizard, Server Roles page, find and check “Web Server (IIS)”

Alt Text

3.In the Roles Services for Web Server Role (IIS), check the desired options to be include in the installation
Note: The installation may take several minutes.

Alt Text

4.Go to explorer, then in the new tab give localhost and IIS server is launched.

Alt Text

5.If everything is installed correctly, you should be able to enter the IP address of your EC2 instance in any web browser, and see the IIS default page

Alt Text

Webpage

For hosting our html web page, go to C drive 🡪 inetpub 🡪 wwwroot 🡪file.
By deleting default files in that folder, we got the error and finally replaced the file with our web(html) file and worked.

Alt Text

You should be able to enter the IP address of your EC2 instance in any web browser.

Alt Text

Posted on by:

ashutoshpipriye profile

Ashutosh Pipriye

@ashutoshpipriye

I'm Final Year Computer Science engineering undergraduate student. Developing new, and improving existing, computer-based technologies, systems, and solutions. Work HARD, Dream BIG!!

Discussion

pic
Editor guide