DEV Community

Cover image for Creating an instance in Amazon Web Services (AWS)
Bashua Mutiat
Bashua Mutiat

Posted on

Creating an instance in Amazon Web Services (AWS)

Imagine having access to over 200 fully featured services that can help your business scale and grow, all from a single platform!
That's exactly what the Amazon Web Services (AWS) platform provides. With data centers located all around the world, AWS is the most comprehensive cloud platform available, offering scalable and cost-effective solutions for all kinds of businesses.

What are Instances

Now that you know what AWS offers, let’s find out what an instances are.

An instance in AWS is a virtual server that you can create and manage within the AWS environment. It's like having a magical computer that lives in the cloud and can do anything you need it to do!

Instances are based on Amazon Machine Images (AMIs), which are pre-configured virtual machines that include everything from the operating system to the software applications you need.

And the best part? With AWS, you only pay for what you use, so you can save money and resources without sacrificing performance.

Steps in creating an instance

1. Create an account with AWS

Before you can create an instance, you need to have an account with AWS. If you already have an account, skip this step. If you don’t, you can create a free tier here Amazon Web Services.
You also need to have a credit card that accepts international payments.

Note:A fee of $1 will be
debited

2. Navigate to EC2 dashboard

Once you are logged into your account, you’ll see a dashboard, navigate to EC2 on the left panel. Afterwards click on instances, which leads you to a page where you can view all your instances. Click on Launch Instance button.

Image description

3. Configure/Customize your instance

Once you click on the launch instance button, it leads you to a page where you can configure your instance. On this page you can do the following:

  • Name your instance You’ll see an input field where you can give your instance any name you like. I named mine scavirtual

Image description

  • Select the Amazon Machine Image (AMI) Select the AMI that meets your needs. AWS provides a wide range of pre-configured AMIs that include various operating systems and software packages

Image description

  • Choose an instance type that meets your needs Choose an instance type that meets your needs in terms of computing power, memory, and storage. AWS provides a variety of instance types to choose from, depending on your workload requirements and budget.

Image description

  • Create a key pair You will be asked to choose or create a key pair, which will allow you to securely access your instance via SSH. You can give it a name you can easily recall and make sure you download it on your computer because you’ll be needing it later.

Image description

Image description

  • Review On the right hand side, there’s a summary panel to review all of your configurations and make sure everything is set up correctly. If you're happy with the settings, click on the "Launch" button.

Image description

3. Launching the instance

Once you click on the launch instance button. A message will pop-up notifying you that your instance has been successfully launched.

Image description

4. Connecting your instance

We’ll be connecting our instance using remote

Image description

  • First, click on the “Get password” button which will require us to upload the pair key we created and downloaded the other time.

Image description

  • Next we’ll be able to generate a password, copy this password as it will be required to connect to your virtual machine.

Image description

  • Afterwards, click on the download remote button. Once it has downloaded, open it , accept the conditions. You’ll be promoted to provide a password, paste the password that was generated earlier.

Image description

5. On your virtual machine

The screen might go blank for a while, don’t fret. Your instance will be available soon.

Image description
There you have it, a virtual windows right in your computer.
Everything you do while on the instance will be stored there.
You can exit the instance if you are done working on it.

Image description

6. Terminating the instance

Once you are done working on the instance and you are sure you no longer need it, it is important you terminate the instance to prevent you from incurring unnecessary charges for resources.
Click on instance states, navigate to terminate instance

Image description

A notification stating that the instance has been successfully terminated.

Image description

Viola! We have successfully launched, connected and terminated an instance.

Top comments (0)