Steps to launch your first EC2 instance on Amazon Cloud

Launch EC2 Instance

AWS Cloud Elasitc Compute Cloud (EC2)

Aws Cloud provides very user-friendly console by which you can launch your own EC2 instance without any hard work.

This article is for fresher’s or newbies who just started working on AWS Cloud and experiencing this great technology. I will share you the step-by-step process to launch your server with the screenshot.

Aws Cloud provides more than 20 instance types and you can use whichever is good for your project and according to your budget.
Today we are going to launch Free Ec2 instance t2.micro. I have already explained everything about the Free Tier Account of AWS. You can check below link for more understanding.

READ :  How to create your own free AWS account?

Step 1 : Login AWS Account

I hope you have already account on AWS Cloud if not then read the link which I shared above. First, go to the Amazon console using URL “” and login with your amazon credentials.

EC2 instance

Step 2 : Select Region

You need to first confirm in which region you want your server to be launch once this decides, click on the drop-down menu next to the support menu. It will give you region’s select your region according to your requirement.
Here I have launched an instance in Mumbai region.

AWS Region

Step 3 : Launch Instance

After confirming the region go to “Services–>EC2”. Once you are in the EC2 console, you will find button on page “Launch Instance”.

Step 4 : Choose Instance Image

Once you clicked on Launch instance next page will provide you instance images by which you can select Operating System for your project. Aws provide both Linux and Windows instance. Click on “Aws Marketplace” and search for Operating system in the search box as per your requirement. Here i preferred to use “Debian” Os.

Why we choose AWS Marketplace instead of other options?

Finding and deploying software can be challenging. You can use AWS Marketplace to compare options, read reviews, and quickly find the software you want. When you find products you want to use, you can deploy that software to your own Amazon EC2 instance with 1-Click, or you can leverage AWS CloudFormation to deploy a topology of the product.


Step 5 : Choose Instance Type

Now you need to choose instance type which means what is the requirement of server hardware configuration for your project. One thing keep in mind if you want free instance then aws provide only t2.micro instance type which has 1GB of RAM and 1 Core CPU.
Click checkbox on t2.micro and click next configuration.

Step 6 : Configure the Instance

Now we are going to configure the instance details. Here keep all the settings default except below some points.

  • Keep instance count 1
  • Keep network settings default
  • Change subnet zone to ap-south 1a or 1b nothing much difference.
  • Keep IAM role none
  • Keep shutdown behavior Stop.
  • Tick on enable termination protection
  • Keep monitoring as it is.

Step 7 : Add storage

In this step, you can add the storage capacity as per requirement. You can be increased the root partition size or also you can add a new volume to the server. In free tier EC2 keep default storage value.

AWS Storage Add

Step 8: Tag Instance

Now give name for your ec2 instance and click on next button

Step 9 : Configure Security Group

Security is a very important thing when it comes to protecting your business. Aws provide internal firewall in the form of security group which restricted unknown ips from hacking or accessing your instance. As of now, we open two ports one is SSH and other is HTTP. Once you launch instance you can add new rules as per your requirement. Like, allow ssh access for your office ips only.

AWS Security Group

Step 10 : Review and Launch

Click on Review and launch button it will give you a final view of your configuration settings which you have selected for Ec2 server. Go through all settings and then click on Launch Button.

AWS Review and Launch

Step 11 : Launch Ec2

That’s it this is our last step of Launching Ec2 server. Click on Launch then it will prompt you to give a name for your server key and download the key. Do remember one thing, this is last chance to have the key to download if you skip this or misplaced your server key you won’t be able to login on the server. Save key and click Launch Instance.


Step 12 : Login on Server

Now go to “Services–>EC2–>Running Instance” and click on your server then come down you will find Elastic IP for your server. Copy that ip and open terminal then run below commands,

Note : First time when you login to the server you need to login with admin user and once you logged in then do sudo su – so you will have root access on the server.

$ chmod 400 Downloads/Ec2ServerKey.pem

$ ssh -i Ec2ServerKey.pem admin@server-i

If you’re facing any difficulties while adding Amazon EC2 Instance. Please do comment your queries or problem via the comment section, till then stay tuned to for more such valuable articles.

Related Posts :

Sign up for Amazon Free Tier account

Leave a Reply

Your email address will not be published. Required fields are marked *