AWS Solutions Architect · Module 3 · Day 9

Operating Systems & a Windows EC2 Instance

⏱ 12 min read🎯 Beginner friendly🖼 2 diagrams🧪 2 live demos

Today you use everything from Day 8 to launch a real Windows server and log in to it. First, a quick look at operating systems; then a step-by-step lab with RDP; then the fixes for the problems everyone hits the first time.

In this session

  • What an operating system is
  • GUI vs CLI, client vs server OS
  • Windows vs Linux on EC2
  • Lab: launch a Windows instance
  • Lab: get the password and connect with RDP
  • Troubleshooting and safer access

01What is an operating system?

Operating System (OS): the interface between the user and the hardware.
HardwareCPU, RAM, disk, networkOperating systemWindows, Linux, macOSYou and your appsclicks and commands
The OS turns your clicks and commands into hardware actions, like a taxi driver handling the car for you.
TypeMeaningExamples
GUIwindows, icons, mouseWindows, macOS
CLItyping commandsLinux on servers
Client OSfor laptops and desktopsWindows 10, Windows 11
Server OSfor hosting websites, databases, Active DirectoryWindows Server 2025, 2022
WindowsLinux
Super-userAdministratorroot (on EC2 you log in as ec2-user/ubuntu, then use sudo)

02Windows vs Linux on EC2

LinuxWindows
Login methodSSHRDP
Port223389
Usernameec2-user / ubuntuAdministrator
Key pair is used to…log in directlydecrypt the password
Screenterminal (text)full desktop
Costlowerhigher (Windows licence included in the price)

03Lab: launch a Windows instance

Demo · Do it yourself

04Lab: connect with RDP

Demo · Get the password and connect
Your .pemprivate keyDecryptin the consoleAdministrator passworduse it in RDP
AWS encrypts the Windows password with your public key; only your private key can unlock it.
Note: Windows Server allows two admin RDP sessions at the same time by default (desktop Windows allows one). More users need Remote Desktop Services licences.

05Troubleshooting and safer access

ProblemLikely causeFix
RDP times outsecurity group doesn’t allow 3389 from your IPadd inbound rule RDP, TCP 3389, source My IP
Worked yesterday, not todayyour home/office public IP changedupdate the rule with your new IP
Wrong address after restartpublic IP changed on stop/startuse the new IP or an Elastic IP
“Password not available yet”Windows still setting upwait 4–5 minutes
Can’t decrypt passwordwrong .pem, or not RSAuse the key chosen at launch; RSA for Windows
Very slow desktopt3.micro has 1 GiB RAMfine for practice; use t3.medium+ for real work
🎯 Exam corner
  • Windows → RDP, 3389; Linux → SSH, 22.
  • Windows admin password → decrypt with the key pair’s private key.
  • Access without open ports or bastion hosts → Systems Manager (Session/Fleet Manager).

06Summary

07Quick quiz

1. Which protocol and port connect to Windows EC2?

2. How do you get the Administrator password?

3. Key pair type for Windows?

4. RDP times out. First thing to check?

5. Why is Windows EC2 more expensive than Linux?

08References

Created by Ajeetkumar