25 Apr How to Create an EC2 Instance In AWS -A Step by Step Guide
How to Create an EC2 Instance In AWS -A Step by Step Guide
In this tutorial, we’ll be demonstrating how we can create an EC2 Instance in AWS. Let’s discuss a little about what Amazon EC2 is. The Amazon EC2 comprises both Windows and Linux-based operating systems which allows businesses owners to run application programs in the Amazon Web Services (AWS) public cloud. With EC2, we can launch as many virtual servers as we want and this provides compute capacity for IT projects and cloud workloads.
How to set up Amazon EC2 Instance
The first thing we are to do is to sign in to our AWS Management Console.
We will then search for EC2 on the search bar which is under services.
Now, we’ll see the EC2 dashboard as seen in the image above. Afterward, we will click on Instances, which is by the left and this opens a new page as seen below. We will then click on the launch instances drop-down and select Launch Instances.
On selecting the Launch Instances, it opens up a new page, which is for selecting our desired Amazon Machine Image(AMI). We’ll select the Ubuntu Server in this tutorial. So, you click the select button whenever you locate the Ubuntu Server.
Choose Instance Type
What we need to do next is to select our instance type. What we will do here is to select the Free tier eligible option as displayed in the image below. Then, after selecting this option, we will click on the Next: Configure Instance Details button to move to the next page.
Now, it opens up the Configure Instance Page. Here, we won’t make any changes to the default settings we see there, we will then move to the next page by clicking on Next: Add Storage button.
What we need to do here is to add storage. You can go with the default settings here or change it to your desired size. Then we select the Next: Add Tags Button.
Here, we’ll be adding a tag that helps us to manage our instances and images. Click on the add tag and provide a key and value inside each box. We can use Demokey as the key and as well supply mypass under the value respectively. We then click on Next: Configure Security Group button.
Configure Security Groups
What we need to do next before we finish the whole process is to configure the security group. To do this we provide rules as SSH and HTTP. We can also provide more rules as we want. We do that by clicking the Add Rule button. We’ll also be changing our HTTP source from custom to Anywhere, so our application can be accessible to all users. After, click on Review and Launch Button.
Review the whole Process
Now, we will review all the settings and configurations we’ve made so far before we then click on the Launch Button. After selecting the Launch button, an image pops up which asks us how we want to generate our Key-Pair. We will select create a new key pair option here and use the RSA format and also type in the key name as mykey and we then click on Download Key Pair Button. After that, we scroll down and click on Launch Instances Button
Now, our Instance will be up and running!! Click on EC2 Dashboard to view your running Instance.