Day - 48 of DevOps

Day - 48 of DevOps

How to Create and Launch Windows Server on EC2 AWS

Welcome to Day 48 of the #100DaysOfDevOps Challenge! Today, we are going to Create and Launch Windows Server on EC2 AWS

Steps To Create AWS Windows EC2 Instance

Note: If you don’t have an AWS account, check my Day 47th. blog on how to create an AWS Free Tier Account

Step 1: Log in to your AWS account and go to the EC2 dashboard to launch a new instance.

Amazon EC2 Connect

Step 2: In the Name and Tags step, you can add tags to an instance. Here, tags help you to enable categorizing AWS resources in different ways, for example, by owner, environment, or purpose. For example, you could define a set of tags for your account’s EC2 instances that help you track each instance’s owner and stack level.

Step 3: Select Windows under QuickStart and Select Microsoft Windows Server 2022 Base AMI. You can also select other AMIs as per your needs, but here we are launching a Windows Server, so we have to select the Windows Server 2022 Base AMI.

Elastic Compute Cloud

Step 4: Select the t2.micro instance type. If you want, you may select another instance type, but they are chargeable, so we choose the t2.micro instance type, which is eligible for the free tier and limited resources.

Instance

Step 4: Select an existing key pair or create a new one. We will create a new one, enter the name of the Key-pair as Windows-Key, and Create the Key Pair.

EC2

How to Connect

Step 5: Now, keep everything default and click on Launch Instance.

win2

Step 6: Now Click on View all Instances.

Step 7: Here, you shall see your instance is launching and the Status check is Initializing, wait for some time.

Step 8: Refresh, and you shall see your instance is Up and Running, and the Status check has changed to 2/2 checks.

EC2 Status

Steps To Connect AWS Windows EC2 Instance

Step 1: First, we have to select the Windows instance From the Running Instance of the EC2 dashboard and click on Connect.

Step 2: Here we have to select the RDP (Remote desktop protocol) Client and then Download the RDP File and save it somewhere safe. We then need a password to access the RDP file, so click on Get Password.

RDP Client

Step 3: At this step of launching, we have to upload the Key-pair (the key that we created in the earlier step). Click on Browse, then select the key and click on Decrypt Password. This provides us with a usable password.

Password

Step 4: After submitting the key pair, the Password is Generated, copied, and saved somewhere safe.

Decrypt Password

Step 5: Now open the Remote Desktop File from downloads for launching the Windows instance. If your local computer is a Mac, you will need to download “Microsoft Remote Desktop” from the App Store to be able to open your RDP file.

RDP File

Step 6: After opening the RDP file, click on Connect to launch the Window instance.
Note: Windows has the Remote Desktop Connection Application pre-installed, so for other OSs like Mac you need to download the Microsoft Remote Desktop app from the Mac App Store.

connect RDP

Step 7: Here we have to provide the credentials for accessing the Instance so we have to Enter the Password That we copied in Step 4 and click on OK.

Credentials

Step 9: Click on Yes.

Permissions

Step 10: So we have successfully connected to an AmazonWindows Instance, Here we perform all our operations and tasks that we are performing on the normal Windows operating system.

connected window instance