Overview
In this guide, we will walk through the process of setting up a virtual machine using Amazon Elastic Compute Cloud (Amazon EC2).
To start, you will need to confirm your AWS subscription. If you are new to AWS, you can get started with Amazon EC2 using the AWS Free Tier.
Prerequisites
-
Create a key pair. Note: We recommend saving the private key file as a .pem format with RSA encryption.
-
Create a security group. Note, we recommend adding a rule for HTTP, HTTPS, RDP, and All ICMP - IPv4.
Launch the instance
To create a new virtual machine instance on AWS, follow these steps:
-
Open the Amazon EC2 console.
-
From the EC2 console dashboard, select Launch Instance.
-
The Choose an Amazon Machine Image (AMI) page displays a list of basic machine configurations (AMIs) to choose from. Select the AMI for Windows Server 2019 Base or later. Note that these AMIs are marked Free tier eligible.
-
On the Choose an Instance Type page, select the t2.micro instance type (default). Note: the t2.micro instance type is elegible for the free tier. In regions where t2.micro is unavailable, you can use a t3.micro* instance under the free tier.
-
On the Choose an Instance Type page, select Review and Launch to let the wizard complete the other configuration settings for you.
-
On the Review Instance Launch page, under Security Groups, you’ll see that the wizard created and selected a security group for you. We will need to specify the security group that was created in step 3 of the Prerequisites section.
- Choose Edit security groups.
- On the Configure Security Group page, choose Select an existing security group.
- In the table, select the security group from the list of existing security groups.
- Choose Review and Launch.
-
On the Review Instance Launch page, select Launch to create the new virtual machine.
-
When prompted for a key pair, select Choose an existing key pair. Then select the key pair that you created in step 2 of the Prerequisites section
Do not select Proceed without a key pair. If you launch your instance without a key pair, then you can't connect to it. -
Select the acknowledgement checkbox and then choose Launch Instances.
-
A confirmation page lets you know that your instance is launching. Select View Instances to close the confirmation page and return to the console.
-
On the Instances screen, you can view the status of the launch. In the Name column, select the Edit icon. In the popup dialog, type RhinoComputeVM to assign a namge to this instance.
-
Once the Instance State column says that the VM is Running, you can then try to connect to it via RDP.
-
With the instance row selected, click the Connect button in the top menu.
-
On the Connect to instance page, select the RDP client tab. Select the Download remote desktop file and save the .rdp file somewhere on your local computer.
-
Next, select the Get password button.
-
Choose Browse and navigate to the private key (.pem) file that you created when you launched the instance.
-
Choose Decrypt Password. The console displays the default administrator password for the instance under Password, replacing the Get password link shown previously. Save this password in a safe place. This passord is required to connect to the instance.
-
Select Download remote desktop file to save the .rdp file to your local computer. You will need this file when you connect to your instance using the Remote Desktop Connect app.
Congratulations! In this tutorial, you successfully launched a virtual machine on AWS and downloaded the RDP file which can be used to connect to that instance.