How to create an EC2 instance on AWS

How to create an EC2 instance on AWS

ยท

2 min read

Step 1: Log in to the AWS Management Console

Log in using your AWS account credentials.

Step 2: Navigate to EC2 Dashboard

  1. Search for EC2 service on the search bar and Click on EC2

Step 3: Launch an Instance

Click on Launch Instances. ๐Ÿ—ƒ

Fill in all details
Instance Name: ec2-test

Select Amazon Machine Image (AMI): Ubuntu

Select Architecture: 64-bit(x86)

Choose an Instance Type: t2-micro (free tier)

Key pair (login)

Create a new key pair and download the .pem file, it will help you to connect with the instance in the next step.๐Ÿ”
Key pair name: ec2-test-key.
Choose a key format according to your requirement

Please select the newly created key from the drop-down options.

Network Setting and Configure Storage are set by default for now we can change as per our requirement.

Note: You can check HTTPS (port 443) and HTTP (port 80)
It enables ports. ๐Ÿฅ…

Now Click on Launch Instance

It will take a few seconds to launch the instance โ˜•

How to connect with Instance ๐Ÿค๐Ÿป

Remember to click on the Connect button.
You will discover four different ways to connect in this section.

  • EC2 Instance Connect

  • Session Manager

  • SSH client

  • EC2 serial console

Now you are connected to your server


Resources:

AWS Doc
What is EC2 Instance Type
What is AMI


ย