How to Create EC2 Windows Instance

How to Create EC2 Windows Instance

Prerequisites – Create Key-Pair and Security Group

  1.  Create Key-Pair
    Key-Pair: – A key pair consisting of a public key and a private key. It is a set of security credentials that you need to use when connecting to an Amazon EC2 instance. Amazon EC2 stores the public key on your instance, and you store the private key. For Windows instances, the private key is required to decrypt the administrator password.
  2. Go to the EC2 home page, Choose Key Pairs from the left menu, Click to Create key pair

    aws-ec2-key-pair-home
  3. Create and configure a security group for Windows-App-Server (i.e. CloudiofyWindowsSG)

    aws-ec2-create-security-group-homeaws-ec2-create-security-group

How to create EC2 Windows Instance using AWS management console

  1. log in to AWS Console and go to EC2 home
  2. Click Launch Instance > Launch Instance

    aws-ec2-home
  3. Enter your instance > Name and tagsaws-ec2-ami-search
  4. Choose > Application and OS Images (Amazon Machine Image)
    • Search available windows Amazon Machine Image > Microsoft Windows Server 2019 Base > select
      Note: You can select any AMI as per your requirement.
      aws-ec2-ami-windows-server-2019-base
  5. Choose an Instance Type
    aws-ec2-instance-type
  6. Configure Key Pair: Select your key pair name > cloudiofy-dev-environment-key that is already created in Prerequisite step-2.
    aws-ec2-key-pair
  7. Network Settings > Select existing security group > CloudiofyWindowsSG that is already created in Prerequisite step-3
  8. Configure storage > Default value > 30 GB
  9. For now, leave the rest of the configuration with default values and > Click to Launch instanceaws-ec2-vpc-sg-storage

How to connect EC2 Windows Instance from RDP

The private key (Created in Prerequisite step-2) is required to decrypt the administrator password. You need to decrypt the password to connect to your instance using the RDP client. Follow the below steps for connecting your ec2 windows instance:

  1. After the windows instance launch, Go to Instances > Select your instance (i.e. Windows-App-Server) > Click to Connectaws-ec2-windows-instance-connect
  2. On the Connect to instance page > Select the RDP client > Click on Get password
    aws-ec2-windows-instance-get-password
  3. Browse your private key (.pem) file (i.e. cloudiofy-dev-environment-key) to Decrypt Passwordaws-ec2-windows-instance-decrypt-password
  4. Select > Download the remote desktop file and save the RDP shortcut file
  5. Copy and Save the Password value for the next step to connect to windows instance
    aws-ec2-windows-instance-password
  6. Double click or Open downloaded RDP file (i.e. Windows-App-Server.rdp) > Click Connect
    aws-ec2-windows-instance-rdp
  7. Enter your copied password and Click OK
    aws-ec2-windows-instance-rdp-connect
  8. Click Yes to connect
    aws-ec2-windows-instance-rdp-connect
  9. Done!

Learn More – How to Create EC2 Linux Instance

How to Create EC2 Windows Instance
Scroll to top