Step 1: log in to AWS Console and go to EC2 home
Amazon Web Services Home
![AWS Home](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-Home.png?fit=1773%2C965&ssl=1)
Step 2: Check the Regions where you want to lunch your EC2 instance
Amazon Web Services Home on the top menu bar you can find Regions
![AWS Home Regions select option](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-Home-Regions-select-option.jpg?fit=1773%2C965&ssl=1)
Check the Regions where you want to lunch your EC2 instance. in this example we are selecting Mumbai Location
![AWS Home Regions drop down option selected](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-Home-Regions-drop-down-option-selected.jpg?fit=1781%2C921&ssl=1)
Step 3: Select EC2
Click on search bar
![](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-Home-Search.jpg?fit=1773%2C965&ssl=1)
On the popup, you need to search EC2 then Select EC2 from the result
![EC2 Selected from Search](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-Home-Select-EC2-Selected.jpg?fit=1589%2C921&ssl=1)
Now you are on EC2 Home page
![AWS EC2 Home](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-EC2-Home.png?fit=1786%2C926&ssl=1)
Step 4: Create Security Groups
Before moving forward we need to create Security Groups for EC2 Windows Server. Click on Security Groups from the left menu.
![](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-EC2-Security-Groups-left-menu.jpg?fit=1778%2C920&ssl=1)
![](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-EC2-Security-Groups-home.png?fit=1918%2C933&ssl=1)
![](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-EC2-Security-Groups-create-security-group.png?fit=1795%2C926&ssl=1)
Follow table is common for all EC2 instance for Linux and Windows server
Type |
Protocol |
Port range |
Source |
Source Value |
SSH |
TCP |
22 |
Anywhere-IPv4 |
0.0.0.0/0 |
SSH |
TCP |
22 |
Anywhere-IPv6 |
::/0 |
SMTP |
TCP |
25 |
Anywhere-IPv4 |
0.0.0.0/0 |
SMTP |
TCP |
25 |
Anywhere-IPv6 |
::/0 |
HTTP |
TCP |
80 |
Anywhere-IPv4 |
0.0.0.0/0 |
HTTP |
TCP |
80 |
Anywhere-IPv6 |
::/0 |
HTTPS |
TCP |
443 |
Anywhere-IPv4 |
0.0.0.0/0 |
HTTPS |
TCP |
443 |
Anywhere-IPv6 |
::/0 |
For windows Server we need RDP port that we are going to use for Remote Desktop Protocol to connect EC2 windows server
RDP |
TCP |
3389 |
Anywhere-IPv4 |
0.0.0.0/0 |
RDP |
TCP |
3389 |
Anywhere-IPv6 |
::/0 |
![](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-EC2-Security-Groups-create-security-group-inbound-rules.png?fit=1557%2C794&ssl=1)
![](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-EC2-Security-Groups-create-security-group-inbound-rules-save.png?fit=1750%2C844&ssl=1)
Step 5: Now we are going to Launch an instance click on launch instance
![](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-EC2-Lunch-instance-screen.jpg?fit=1778%2C920&ssl=1)
Now you need to added name to server
“My Windows Server”
![](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-EC2-launch-an-instance-page.png?fit=1295%2C904&ssl=1)
After that we need to select Windows
![](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-EC2-launch-an-instance-page-select-AMI.png?fit=1261%2C910&ssl=1)
There are different type of windows Amazon Machine Image (AMI) available on Aws.
We are going select latest Microsoft windows server 2022 base AMI
![](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-EC2-launch-an-instance-page-select-AMI.png?fit=1261%2C910&ssl=1)
Selecting Instance type
![](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-EC2-launch-an-instance-page-select-Instance-type-2.png?fit=1284%2C904&ssl=1)
Then we need to create new key pair for our server that we need later to create a password for the ‘Windows server. Click on create new key pair
![](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-EC2-launch-an-instance-page-select-key-pair-create.png?fit=1308%2C913&ssl=1)
Then new popup open then add key pair name and Private key file format
We need .pem for windows server.
Now we need to set Network
![](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-EC2-launch-an-instance-page-select-security-groups.png?fit=1339%2C926&ssl=1)
In network setting are going to select existing Security groups
We select “MyWindowsServerGroup” that we already created before
![](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-EC2-launch-an-instance-page-select-security-groups-search-group.png?fit=807%2C553&ssl=1)
Now we selecting our previously created
![](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-EC2-launch-an-instance-page-select-security-groups-mywindowsservergroup.png?fit=823%2C542&ssl=1)
Now final step to select Storage for Windows Server 30GiN is minimum space require
![](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-EC2-launch-an-instance-page-select-now-launch-instace.png?fit=1281%2C925&ssl=1)
Now click on launch instance to lunch our instance
This is Our Created Server
![](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-EC2-Home-instance-launch.png?fit=1935%2C934&ssl=1)
Step 6: Now we need to connect to the Instance
![](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-EC2-Home-instance-launch.png?fit=1935%2C934&ssl=1)
Click on Connect button
![](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-EC2-Home-instance-launch.png?fit=1935%2C934&ssl=1)
![](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-EC2-Home-instance-connect-to-instance.png?fit=842%2C690&ssl=1)
![](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-EC2-Home-instance-connect-to-instance-select-RDP-Client.png?fit=834%2C874&ssl=1)
![](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-EC2-Home-instance-connect-to-instance-select-RDP-Client.png?fit=834%2C874&ssl=1)
now upload that key we created before when lunching instance
![](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-EC2-Home-instance-connect-to-instance-get-password.png?fit=846%2C679&ssl=1)
Now upload private key file to then click on Decrypt password
Then copy that password and save
![](https://i0.wp.com/prafulbhuskute.com/wp-content/uploads/2023/02/AWS-EC2-Home-instance-connect-to-instance-get-password-copy-that-password.png?fit=848%2C880&ssl=1)