A Key Pair is used to encrypt and decrypt credentials for the EC2 virtual server. In case of losing the key pair, follow these steps to assign a new one.
In the EC2 interface:
Name: Enter Windows Server AMI
In the AMI selector:
Next, select Instance type and choose Create new key pair
In the Create key pair interface:
kp-windows2
Now, configure the network for the new instance. Under Network settings, select Edit and then:
Double-check the settings and click Launch instance
Finish creating the new instance, then click View all instances to see details about the instance
Wait approximately 5 minutes after initialization for the Status check to change to 2/2 checks passed