Create an EC2 Instance for
Linux
s
Create an EC2 Instance for Linux
The full form of Amazon EC2 is Amazon Elastic Compute Cloud. Amazon EC2 is one of the most
used and most basic services on Amazon so it makes sense to start with EC2 when you are new
to AWS. Well, to be very simple, EC2 is a machine with an operating system and hardware
components of your choice. But the difference is that it is totally virtualized. You can run
multiple virtual computers in a single physical hardware.
Amazon EC2 instances eliminate the up-front investment for hardware, and there is no need
to maintain any rented hardware. It enables you to build and run applications faster. You can
use EC2 in AWS to launch as many virtual servers as you need. Also, you can scale up or down
when there is an increase or decrease in website traffic.
● Step 1: Open the AWS Management Console and log in to
https://aws.amazon.com/console/
● Step 2: Click on the “Services” option from the top menu and then under “Compute”
select the “EC2” option.
● Step 3: Click on the “Launch instance” button.
Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 4: Then, Enter the below details:
1. Name: Enter a name for the table i.e., scholarhat.
2. Choose an Amazon Machine Image (AMI): Select Amazon Linux 2 AMI in the
drop down.
3. Architecture: Select 64-bit(x86).
Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 5: Choose an Instance Type: Select t2.micro.
● Step 6: For key pair: Select “Create a new key pair” and enter the following details:
1. Key pair name: Enter a name for the key pair i.e., ScholarKey.
2. Key pair type: Select RSA.
3. Private key file format: Select .pem
Click on the “Create Key pair” button.
Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 7: In Network Settings, click on the “Edit” button.
1. Auto-assign public IP: Select Enable.
2. Select Create a new Security Group
3. Security group name: Enter MyScholarServer.
4. Description: Enter Security Group to allow traffic to EC2
Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 8: Select choose type as “SSH” and Source as “Anywhere”.
Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.
● Step 9: Leave the rest of the options as default and Click on the “Launch instance”
button. Your instance is successfully installed.
● Step 10: Click on the instance ID and wait for the complete initialization of the instance
until the status changes to “Running”.
Contact Us
You can always reach out to us if you need help with this practice hands-on lab. For getting
help, email us at [email protected] or connect at the #support channel on Discord.
Copyright Dot Net Tricks Innovation Pvt. Ltd. | All rights Reserved.