Setting up a virtual machine is one of the first skills learned when learning about the cloud. It is very important as it is the foundation of cloud computing. A virtual machine or server is usually referred to as an instance and they are used interchangeably. Amazon Elastic Compute Cloud (EC2) is the service which provides scalable computing capacity in the Amazon Web Services (AWS) Cloud. Amazon EC2 is used to launch as many or as few virtual servers as needed, configure security and networking, and manage storage.
Prerequisites: You should have an AWS account or register here to create an account.
Launching An Instance
From the EC2 console dashboard, select the Launch Instance from the Launch Instance Dropdown to create a virtual server.
Under Application and OS Images (Amazon Machine Image), select Windows as this is the desired operating system (OS) we are setting up for the instance.
For the Amazon Machine Image (AMI), we can stick with the default which is Free tier eligible. An Amazon Machine Image (AMI) is a basic configuration that serves as a template for the instance.
The instance type is usually used to set the hardware configurations of the instance such as storage capacity, storage type(ssd or hdd), CPU, memory or network performance. We would just leave this as default.
Under Key pair, create a key pair or use a previously created one. This allows a secure connection to the instance and is a step that should not be skipped as one would not be able to connect to the instance without it. A file gets downloaded on creation of the key pair.
Keep the default selections for other configurations, review the summary of the configurations and launch the instance.
Once successfully launched, we are able to see it running on the EC2 dashboard. More information of the instance can be viewed by clicking it.
Connecting to the Launched Instance
Navigate to the RDP Client tab and download Remote desktop file.
Generate password by uploading the key pair file and decrypt password. Copy the generated password as this password would be used to connect with the remote client.
Open the Remote Desktop file with a suitable application. I used the Microsoft Remote Desktop App from App Store. Enter the password generated in step 3 and the virtual instance is started.
On getting this prompt, click continue
Feel free to also perform some actions. I browsed and also confirmed the storage was 30gb.
Terminating the Instance
Once done with an instance, it should be terminated as resources not needed should not be left running as it incurs costs.
After the instance is terminated, it remains visible on the console for a short while before being removed from the console.
Top comments (0)