Step 1: log in to AWS Console and go to EC2 home
Amazon Web Services Home
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
Check the Regions where you want to lunch your EC2 instance. in this example we are selecting Mumbai Location
Step 3: Select EC2
Click on search bar
On the popup, you need to search EC2 then Select EC2 from the result
Now you are on EC2 Home page
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.
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 |
Step 5: Now we are going to Launch an instance click on launch instance
Now you need to added name to server
“My Windows Server”
After that we need to select Windows
There are different type of windows Amazon Machine Image (AMI) available on Aws.
We are going select latest Microsoft windows server 2022 base AMI
Selecting Instance type
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
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
In network setting are going to select existing Security groups
We select “MyWindowsServerGroup” that we already created before
Now we selecting our previously created
Now final step to select Storage for Windows Server 30GiN is minimum space require
Now click on launch instance to lunch our instance
This is Our Created Server
Step 6: Now we need to connect to the Instance
Click on Connect button
now upload that key we created before when lunching instance
Now upload private key file to then click on Decrypt password
Then copy that password and save