Skip to main content

Command Palette

Search for a command to run...

How to Create an AWS Account and Launch a (EC2) Server

Published
6 min read
How to Create an AWS Account and Launch a (EC2) Server

1.Open Google Chrome (or any browser).


2. Click Create Account

  • On the AWS home page, click Create an AWS Account.

3. Create a New AWS Account

  • On the homepage, click “Create a new AWS account”. Or, if you see “New to AWS? Sign up”, click that.


4. Enter Email & Account Name

  • Provide a valid Email address and a unique Account name (any name you like).

  • Click “Verify email address”.

  • AWS will send a verification code to your email.


5. Email Verification

  • Go to your Gmail inbox, copy the verification code.

  • Paste the code in the box and click “Verify.

6. Set Root User Password

1. Root User Password

  • Enter a strong password (as you already did).

  • Confirm the password.

Choose Your Account Plan

You have two options:

Free (6 months) – Best for learning & practice

  • You get up to $200 credits.

  • Free usage of selected AWS services.

  • But after 6 months (or once credits are finished), account will close unless you upgrade.

2.Account Information

  • Choose Account type:

  • Personal (for learning / individual use)

  • Enter your Full name.

  • Enter your Phone number.

  • Enter your Country/Region, Address, City, State, Postal code.

  • Agree to the terms.

3. Payment Information

  • AWS requires a credit/debit card (for identity verification).

  • Enter your card details.

  • AWS will place a small temporary charge ($1 or ₹2 INR) → this will be refunded automatically.

  • About PAN Card (for India users):

    • AWS sometimes asks whether you have a PAN (Permanent Account Number).

    • If you don't want to add it now, select No and continue. You can add it later.

OTP Verification

  • After entering details, you’ll receive a payment OTP from your bank.

  • Enter the OTP and click “Confirm”.

  • If successful, you’ll see confirmation that your payment method is added.

4. Confirm Your Identity

  • Select purpose of account → Choose Personal use.

  • User type → Select Individual.

  • Identity verification document → Choose PAN Card.

  • Enter your Date of Birth (DOB) exactly as per PAN card.

  • Enter your PAN card number.

  • Select the account identity

  • Upload a clear image of your PAN card (front side).

  • Make sure it’s sharp and all details are visible.
  • Click Continue.

5. Mobile Verification

  1. Enter your mobile number.

  2. Click Send SMS.

  1. solve CAPTCHA (enter the characters shown).

  1. Enter the OTP you receive.

After this, your identity will be successfully verified.

6. Support Plan

  • After OTP verification → Click Confirm.

  • Next screen will show Support Plans.

  • Select Basic Plan (Free)

  • This is best for learning and practice.

  • Click Continue.

  • Your AWS account signup is now complete.

  • You’ll get a Welcome Email from AWS, and you can log in to the AWS Management Console.

  • Click “Sign in to Console”.

  • Choose “Root user, enter your registered email.

  • Click Next, enter your password, then Sign In.

You’ll now be logged in to the AWS Cloud Console and can start using AWS services


Launching an EC2 Instance (AWS Virtual Server)

Step 1: Choose Region

  • You can create the server in any AWS region you have access to.

  • Note: Some regions might not be available to you due to permission restrictions or quotas.

Step 2: Open EC2 Dashboard

  • Search “EC2” → Click on EC2 to open the dashboard.

Step 2: Launch New Instance

  • Click “Launch Instance”

  • In AWS Console, search for "EC2" and open the EC2 Dashboard.

  • Click "Launch Instance".

  • Name your instance: Example – kkdevops.

Step 3: Choose OS (AMI / Flavour)

  • Choose the OS (distribution) you want, like Red Hat (RHEL), Ubuntu, or Amazon Linux.

  • These are called AMI (Amazon Machine Images).

Step 4: Choose Instance Type

  • For basic use or learning, t2.micro is enough.

  • It is Free Tier Eligible and works fine for testing or small projects.

Step 5: Create or Use a Key Pair

  • A key pair is needed to connect securely (via SSH) to your instance.

  • If you don’t have one, click Create new key pair:

  • Name: kkdevops

  • Type: RSA

  • Format: .pem

  • Now, click on "Create key pair." This will automatically download the .pem file, which is usually saved in your Downloads folder.

Tip: You can reuse existing key pairs for future instances instead of creating a new one each time.

  • Click “Launch Instance”

  • Now you can see the instance launched successfully.

  • Select the instance to view the launched instances.


After Launching the EC2 Instance: How to Connect Using Git Bash

Once the EC2 instance is launched successfully, we need a way to connect to the server from our local machine. This is where Git Bash (or any SSH-enabled terminal) comes in.

Step 1: Install Git Bash

If you don’t have Git Bash on your system:

  • On the site, click on Download for Windows

  • Click on "click here" to download

  • Once downloaded, install it by clicking Next → Next → Install

  • After installation, you’ll see Git Bash on your desktop or start menu.

Step 3: Get the SSH Command from AWS Console

  • Go to your EC2 Dashboard

  • Select your running instance

  • Cick the “Connect” button on top

  • In the "SSH client" section, you’ll see a command that looks like this:

ssh -i "your-key.pem" ec2-user@<your-ec2-public-ip>

  • Copy that command it includes your .pem key and the EC2 public IP.

Step 4: Paste the SSH Command in Git Bash

  • Open Git Bash on your system.

  • Move to the folder where your .pem file is saved (usually in Downloads):

cd ~/Downloads
  • Now paste the SSH command you copied from the AWS Console: Press Enter.

  • The terminal may ask: Are you sure you want to continue connecting (yes/no)?

  • That’s it! You are now connected to your EC2 instance
K

Thank you.

1

More from this blog

kkfunda

60 posts