DEV Community

Cover image for A Beginner's Guide to Creating a Virtual Machine (EC2) in AWS.
jade
jade

Posted on

A Beginner's Guide to Creating a Virtual Machine (EC2) in AWS.

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

Image description

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.

Image description

Step 4: Choose a name for the instance you want to create.

Image description

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.

Image description

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.
Image description

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.

Image description

  • Generate password by uploading the key pair file and decrypt password. Copy the generated password and other details.
    Image description

  • Open the Remote Desktop file and paste the generated password upon request

Image description

Image description

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.

Image description
Image description

The end.

Quadratic AI

Quadratic AI – The Spreadsheet with AI, Code, and Connections

  • AI-Powered Insights: Ask questions in plain English and get instant visualizations
  • Multi-Language Support: Seamlessly switch between Python, SQL, and JavaScript in one workspace
  • Zero Setup Required: Connect to databases or drag-and-drop files straight from your browser
  • Live Collaboration: Work together in real-time, no matter where your team is located
  • Beyond Formulas: Tackle complex analysis that traditional spreadsheets can't handle

Get started for free.

Watch The Demo 📊✨

Top comments (0)

Image of DataStax

AI Agents Made Easy with Langflow

Connect models, vector stores, memory and other AI building blocks with the click of a button to build and deploy AI-powered agents.

Get started for free

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay