Online computer science courses to jumpstart your future.
AWS

Setup Your Amzoan EC2 Instance

Google+ Pinterest LinkedIn Tumblr

These days, there is a lot of cloud computing provides in the market available who provide you potential hardware setup, thus you’ll be able to develop and deploy applications quicker with eliminating your investment on maintenance of the hardware setup. After deciding AWS(Amazon web service) as a cloud provider for your application, now you need to learn how to manage all the services provided by this amazing and affordable cloud provider. Amazon EC2 is one of the most common and widespread use services of AWS. In this tutorial, you will learn about the features and capabilities of the Amazon EC2 instance and how to set up a Linux distribution in the EC2 instance.

What Is Amazon EC2

Amazon Elastic Compute Cloud (Amazon EC2) is the core of the AWS platform that allows you to effectively create a virtual server.  Amazon EC2 instance creates a virtual server for your web application or website within a minute with the full support of vast AWS infrastructure. It provides you with complete control of your computing resources and lets you run on Amazon’s proven computing environment. Amazon EC2 reduces the time required to obtain and boot new server instances to minutes, allowing you to quickly scale capacity, both up and down, as your computing requirements change.

Why Use Amazon EC2

If you are working on any SaaS-based product or any type of service by the website then Amazon EC2 is the best option for you to host your application on the cloud. You can start with their small instance and can increase its capacity as your traffic grows, this is one of the best things about cloud computing. You can increase your server capacity as your business grows.

How to Create An Amazon EC2 Instance

After creating an account on AWS, you will need to set it up for your use. Follow the below steps to create an Amazon EC2 instance:

Step 1

This is what your aws console will like after login into your aws account. This page might be different when you log in because Amazon will change their UI time to time.

aws-management-console-min

It contains all of the services provided by the AWS or which you could probably or recently used. Click on the EC2, it is very top of the page.

Step 2

After clicking on the EC2, you will redirect to the EC2 dashboard which tells all the information of EC2 instance like how many instances are currently running, how many security groups associated with the instance, number of key-value pairs, number of load balancers and other important information of your instance.

aws-resources-page-min

In this page, you will find a large blue colour button having text like Launch Instance, click on this button to proceed further.

Step 3

In this page, you will pick an Amazon Machine Image(AMI). This is the page where you select which type of operating system do you want for your website or application. In this tutorial, we are going to use Linux  ( Ubuntu ) Image of the AWS but you can select any image as per your choice.

aws-ami-page-min

Step 4

Now you will be asked to select the instance type. Select any instance type as per your requirement. For this tutorial, we are selecting a micro instance type. All the instance differs by the number of virtual CPUs (vCPU), memory, available storage, and network performance.

aws-instance-type-min

Click on the next configure details button which takes you to another page.

Step 5

 

aws-configure-instance-min


Step 6

Now you have to add storage type for your EC2 instance. If you need then you could have more than one volume here.

Step 7

In this step of configuring the EC2 instance, you will add tags for your instance. Tags are just a key-value pair associated with your instance. Type any name as you want and then click on next.

Step 8

In this step, you will configure the security group for your Amazon EC2 instance. Security group is like a firewall for you instance. By default, amazon fireawalls off everything for your instance. If you want to have a web server you need to open the port 80 and if you want ssh access you need the port 22 open in your security group.

aws-security-group

You are free to give any name to your security group depending upon your requirement and structure. Amazon already by default assign a name for your security group. Click on review and launch button and review all the previous steps which you have already done.

Launch Your EC2 Instance

Till now, you did all the basic things which is required to start the EC2 instance. Now it’s time to launch your instance so that you can use it for your web application or website.

In this, you need to create a key-value pair for your instance to log in to using SSH. If you have already then there is no need to create new one but it is good practice to use different SSH key for every purpose. So create new one or use already if you have any then click on the launch instance. On the next screen, you will see that your instance is launched and in progress. Click on the instance id then you will see the snapshot of your running instance.

Conclusion

With this article you know how to launch your amazon EC2 instance and some other basic concept of the EC2. If you are facing any issue regarding this then please comment down and will resolve your issue as soon as possible. AWS is very trendy topic for the DevOps. These days demad of the developers who has knowledge about AWS or cloud technology is increasing exponentially.

Pin It