How to create Amazon EC2 Instance (Ubuntu -18.04)?

Welcome to itscloudhub!!

In this blog post, we will discuss how to create EC2 instance on AWS. 

What is Amazon EC2?

Amazon Elastic Compute Cloud (EC2) is one of the compute services offered by AWS which helps users to create highly scalable and highly available virtual instances to run their services without owning any physical servers.

How to create EC2 Instance (Ubuntu -18.04) on AWS?

In this blog, we will be create a EC2 Instance (Ubuntu -18.04) on AWS. For that, we need to login AWS console and find EC2 service on search for services.

Click EC2 and go to EC2 dashboard. It will show you the list of  Instances which was already created like in the below image.

Click Launch Instances to create a new Instance. First step is to choose AMI (Amazon Machine Image), here I am choosing Ubuntu 18.04.

Note: Amazon Machine Image is nothing but its like a template which was already available on AWS. Also, we had an option to choose AMI's from AWS marketplace.

Next, we need to choose an Instance Type and its like a configuration of the VM. I am choosing t2.micro for testing purpose and you can choose the Instance type based on your needs.

Next, we need to configure the details of the Instance like number of instances, network, subnet etc. For now, I leave it as default and you can change it based on your project configuration.

Next Storage, like in the above configuration I leave it as default.

If you want to add Tags for the Instance, we can add it here and use it for some other related services. Otherwise leave it as default like in the below image.


Next we need to create and configure Security Group for the instance based on project requirements. Security Group is like a group of firewall rules which helps to control the traffic for our instance. Here we are creating Security Group and open SSH port (22) to access the instance after deploying it.


Next, review the configuration and click Launch to create a new Instance.


After that, we need to create a SSH key pair to connect the Instance from any where. If you already have a generated key pair we can use it otherwise we have to create a new key pair and use it for the instance. Download and store the key after it generated.

It will help us to connect the instance.


It will launching the new Instance. Click View Instances to view the newly created Instance.


The list will show you the newly created Instance like in the below image.


Click Instance ID to view the summary of the Instance. It will show all the details of the Instance which is created. Click Connect to access the VM.


Click SSH client and copy the command to connect the Instance. 


Open Command Prompt on your Windows machine and navigate to the downloaded path of your key.


Paste the command and click enter to access the Instance.




Thank You...!!

Comments

Popular posts from this blog

How to update build number in Azure DevOps pipeline?

How to get latest build ID from Azure DevOps pipeline?

How to install AWS System Manager (SSM) Agent on windows using PowerShell?