DEV Community

Cover image for AWS : Launching an EC2 Instance
Jyoti Bhasin
Jyoti Bhasin

Posted on

AWS : Launching an EC2 Instance

EC2 is an AWS service that provides resizable compute capacity in the cloud. It allows users to create and manage virtual servers.

Image description

In this tutorial, we will be going through the process of launching an EC2 (Elastic Compute Cloud) instance on AWS.

Prerequisites:

  1. An AWS account
  2. Basic knowledge of AWS services

Step 1: Sign in to the AWS Management Console

  • Login to your AWS account by going to the AWS Management Console - console.aws.amazon.com
  • Enter your credentials to log in.

Step 2: Launching an EC2 Instance

  • From the AWS Management Console, search "EC2" and click it.
  • Now, click on the "Launch Instance" button to begin the instance creation process.

Image description

Step 3: Choose an Amazon Machine Image (AMI)

  • Select an AMI based on your requirements such as Amazon Linux 2, Ubuntu, Windows Server, etc.
  • Click on the "Select" button after choosing.

Image description

Step 4: Choose an Instance Type

There are different instance types which differ in terms of computing power, memory, storage, and network performance.

  • Select the instance type as required (e.g., t2.micro, m5.large, etc.)

Image description

Step 5: Configure Instance Details

  • Next, we will configure the instance settings, such as the number of instances, network settings, etc.

Image description

Step 6: Add Storage

  • Next, you can specify the storage requirements for your EC2 instance such as size, type, and other storage options, etc.

Step 7: Configure Security Group

  • Now you can create a security group or select an existing one.
  • Choose rules to control traffic access to your instance.

Image description

Step 8 Review Instance Launch

  • Review the configuration details of your EC2 instance and if everything is as desired then click on the "Launch" button.

Step 9: Create a Key Pair

A key pair basically allows you to securely connect to your EC2 instance by using SSH.

  • Now you can choose an existing key pair or create a new one. Image description

Step 10: Launch Instance

  • Click on the "Launch Instances" button to launch the instance.

Image description

Step 11: Connecting to Your EC2 Instance

  • Once the instance is launched, you can choose it from the EC2 dashboard and now copy or note down the Public IP address of it.

Image description

Image description

Step 12: Connect via Remote Desktop

  • Search "Remote Desktop" in the Start menu and open it on your Windows machine.
  • Enter the Public IP address of your EC2 instance in the popup.
  • Provide your username and password if asked and connect.

Image description

Image description

Image description

Top comments (8)

Collapse
 
abhinabmondal profile image
ABHINAB MONDAL

You explained how to launch EC2 in AWS. Nice Blog

Collapse
 
secure_bug profile image
Jyoti Bhasin

Thanks a lot !

Collapse
 
anirbansarkar55744 profile image
anirbansarkar55744

Great Work

Collapse
 
secure_bug profile image
Jyoti Bhasin

Thank you !

Collapse
 
nyctoknight profile image
NyctoKnight

Well u explained pretty well to a non AWS user like me......its a nice blog writing and very impressive.

Collapse
 
secure_bug profile image
Jyoti Bhasin

Thank you ! Happy to know.

Collapse
 
chandug25 profile image
Chandra Sekhar G

Thank you Jyoti bhasin for your blog. You explained how to launch EC2 in AWS very well. It was very straightforward. I will try it soon.

Collapse
 
secure_bug profile image
Jyoti Bhasin

Thanks a lot !