Create a Windows Instance using AWS EC2.
Published: 2023-04-07 10:44:14

So if you ever want to have a windows computer in the cloud.How would you set it up.

We shall use Remote Desktop Client to log into our instance in this article.

Step 1: Log into your AWS Account and search for EC2 service.

![Search ec2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/shmypm1gexwaqq6blemg.png)

Step 2: Click the orange "launch instance" button.


![click launch instance](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jl2h27sqlbvp6iveljf0.png)

Step 3: Fill in the name of your instance, say "testInstance".


![click create key pair](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vmgxrea8jsx4gloyvmgg.png)

- Create a key pair and download it.

![create key pair](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fdel39igdj6uf0um5uqq.png)

- Add name of key pair and click "Create key pair".This will download the key pair file to your computer.

![add nae of key pair and click create](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/agqe3325101cgpzzo0jo.png)

Step 4: Now head over to the bottom and click "Launch Instance"

![click launch instance](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nu5mjzelb8haxa53jqbo.png)

Success message for launch instance.

![success launch](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3cg28197ircf5k417o12.png)

Step 5: Click on the instance link and it should lead you to the Instance page.

![Click instance link provided](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0xt2h9gkh3gckemnbdb6.png)

Step 6: Click the "connect" button.

![connect button ](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3ckxhymm2neoat6epesm.png)

Step 7: Choose Connect with "RDP Client" and download the remote desktop file.

![Choose RDP client](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3n8v5bg2w4842jwxxexy.png)

Step 8: Double click the downloaded rdp file to launch your local RDP Client in my case Remmina on ubuntu. 

- Copy and paste the public DNS into the input and Click Enter.

![copy public DNS](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pzowxna389fv55diovfx.png)

- Click Yes to Accept certificate.
![Yes to accept certificate](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1ntb0fe7bbt9yycln0s6.png)

- Next, we need to enter the fields for username and password.

![rdp fields to fill](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/480os6t4int4j9xp37u7.png)

- Go back to AWS console and copy the username provided usually "Administrator" then click the get password button.

![copy username and get password](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gpbp6obzr47s6sootixd.png)

- Upload your key pair that was downloaded to your pc.

![upload key pair](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x7f28qacftak5anbgpou.png)

- Choose key pair.
![choose key pair](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bpbszj1ygjtpokwjn1hn.png)
- Click decrypt key.

![decrypt lkey pair](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2ch0e0vr5qn9njkji0p8.png)

Step 9: Copy the password into the RDP client.
![copy password into rdp](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v6xzwk3sal6kx8mkn36m.png)

![copy password](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fuw9e0zv6o5ddgtx5u61.png)

Step 10: Click "ok" or "Connect" depending on your client.

![Click ok](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5vh808chsx0z2629vt6a.png)

Voila! We have set up a Windows Instance and logged into it.