DEV Community

Cover image for How to Create an AWS Account, Launch a Windows EC2 Instance, and Install IIS
Busa Ayim-Odu
Busa Ayim-Odu

Posted on

How to Create an AWS Account, Launch a Windows EC2 Instance, and Install IIS

Introduction
Creating an EC2 instance on AWS is one of the first steps to getting started with cloud computing. In this guide, you'll learn how to:

Create an AWS account.

Launch a Windows EC2 instance.
Install IIS (Internet Information Services) on the Windows instance using the command prompt. Whether you're a beginner or someone brushing up on AWS basics, this tutorial has you covered!

Step 1: Create an AWS Account
To begin, you'll need an AWS account. Here's how:

Visit the AWS Signup Page.
Click Create an AWS Account.
Fill in the required details, including:
Email address
Password
Account name
AWS

Once your account is created, sign in to the AWS Management Console.

-Step 2: Launch a Windows EC2 Instance
Navigate to the AWS Management Console.
Search for EC2 in the services search bar and click on it.
EC2

Click the Launch Instances button.
Configure your instance:
Name: Give your instance a name (e.g., "Windows-IIS-Test").
AMI: Choose Microsoft Windows Server (e.g., Windows Server 2019 Base).
EC2

Instance Type: Select a type like t2.micro (free tier eligible).
Key Pair: Create or select an existing key pair to securely connect to your instance.
AWS Key

Network Settings: Ensure that RDP (3389) is allowed in the security group.
Review the settings and click Launch Instance.
AWS Inbound

Step 3: Connect to Your Windows Instance
Once the instance is running, select it from the EC2 dashboard.
Click Connect and select the RDP Client tab.
AWS

Download the Remote Desktop File and retrieve the password:
Click Get Password and upload the private key file you downloaded earlier.
AWS RDP
AWS

Decrypt and copy the password.
AWS2

Use the Remote Desktop Protocol (RDP) to connect to the instance:
Open the downloaded .rdp file in your Remote Desktop client.
AWS RDp
Enter the username (Administrator) and the decrypted password.
AWS

Step 4: Install IIS on the Windows Instance
Once connected to the instance, open the Command Prompt with administrative privileges.
AWS Powershell

Run the following command to install IIS:

Powershell
Copy code
Install-WindowsFeature -Name Web-Server -IncludeManagementTools
Installing

This command:
Installs the IIS Web Server role on the Windows instance.
Includes the management tools needed for configuration.
Once the installation is complete, verify that IIS is running:
AWS Success

Open a web browser on your instance.
Enter http://localhost in the address bar.
You should see the default IIS welcome page.
IIS Server

  • Step 5: Access the IIS Server from Your Local Machine To make the IIS server accessible from your local machine:

Go to the EC2 Dashboard.
Edit the Security Group attached to your instance.
Add a new inbound rule:
Type: HTTP
Protocol: TCP
Port Range: 80
Source: Anywhere (0.0.0.0/0) or your specific IP address.
Save the changes and access your server by visiting the public IP address of your EC2 instance in your local browser:
http://
Local
Conclusion
Congratulations! You've successfully:

Created an AWS account.
Launched a Windows EC2 instance.
Installed IIS and accessed it from your local machine.
This setup is a great starting point for deploying Windows-based web applications in AWS. Let me know in the comments if you have questions or ideas for extending this tutorial!

Top comments (1)

Collapse
 
tjasper profile image
Oluwaloseyi Oluwatofunmi Emmanuel

Well-detailed article. Thanks for sharing!