I recently got into the shecode africa cloud school and it's been exciting. Our first take home task was to create a virtual machine in AWS.
According to AWS; Amazon Elastic Compute Cloud (Amazon EC2) provides scalable computing capacity in the Amazon Web Services (AWS) Cloud.
Using Amazon EC2 eliminates your need to invest in hardware up front, so you can develop and deploy applications faster.
Amazon EC2 provides Virtual computing environments (vm), known as instances.
In this tutorial, I'll be discussing the following:
- How To Create an EC2 Instance
- Connecting the Instance.
- Stopping the EC2 Instance.
*Note: I use a windows 11 operating system on a hp probook. *
How To Create an EC2 Instance.
Step 1. Log into your AWS Console. If you don't have an account, create a free AWS account here.
Step 2.
Once on your dashboard search for EC2 or click on it
Step 3.
On your dashboard you'll see the resources tab, that kinda serves as a status bar. Click on Launch Instance to create a new instance.
Step 4: Choose a name for the instance you want to create.
Step 5: Time to pick your AMI (Amazon Machine Image). This contains operating systems (Ubuntu, Windows, Mac etc). I am creating a vm on Windows 11, so, select Microsoft Windows.
Step 6: Scroll down to create a unique key pair for your instance. Click on Create new key pair. Select the .pem file, then click on Create Key Pair. The Key Pair will be created and automatically downloaded.
Step 7: Click Launch instance and you will get a notification that your instance has been launched successfully.
Connecting the Instance.
Go back to your instances tab. Click on it and select Connect at the top corner right of the screen.
Connect using RDP. Download the Remote Desktop File (RDP File). Now, click on get password.
Generate password by uploading the key pair file and decrypt password. Copy the generated password and other details.
Open the Remote Desktop file and paste the generated password upon request
Stopping the EC2 Instance.
To avoid unneccesray bills and charges. You definitely need to terminate the running instance
Select the running instance and click “Instance State” From the drop down options, choose terminate instance.
The end.
Top comments (0)