How to Create the First AWS EC2 Linux Instance in free-tier

In AWS, If you want to create the servers, you need to go to the compute --> Ec2 services. In AWS servers are called Instances. so we are...

In AWS, If you want to create the servers, you need to go to the compute --> Ec2 services.

In AWS servers are called Instances. so we are going to create the Instance.

Log in to the AWS console you will see the search box at the top of the console type EC2 and click. It will take you to the ec2 dashboard.

EC2 Dashboard you will see a lot of sub-topics, In the topics, we need to choose the Instances options. 

In the Launch Instances dashboard, you can see all the instances (stopped, running instances).
Click the Launch Instances option in the dashboard.

It will go to the Instance creation steps, in the Instance creation steps you need to follow the below Eight simple steps.
1. Choose AMI
2. Choose Instance Type
3. Configure Instance 
4. Add Storage 
5. Add Tags
6. Configure Security Group
7. Review
8. Choosing the Keypair

1. Choosing AMI:
     In AWS all the OS are in the form of Image(AMI), So we need to choose the AMI for our used cases.
     To create the machine in free-tier you need to choose the free-tier option so that it will show the free-tier available AMIS.
      Currently, we have Linux AMIS (Amazon Linux 2, Red Hat Enterprise Linux 8, Ubuntu Server 20.04 LTS, Debian 10, SUSE Linux Enterprise Server 12 SP5, Ubuntu Server 18.04 LTS, Ubuntu Server 16.04 LTS), for Windows( Microsoft Windows Server 2016,2019, 2022 Base, Microsoft Windows Server 2019,2016,2022 Base with Containers, Microsoft Windows Server 2012 R2 Base).
   Now I need a Linux Machine in free-tier. so I am choosing the Amazon Linux 2.

2. Choose Instance Type:
    Choosing the Instance Type for free-tier always needs to choose t2.micro. Because for free-tier aws only provide t2.micro type.

3. Configure Instance:
    In the Configuration part, you need to choose mainly 4 steps to create a basic Linux Instance.
    First, you need to choose the number of instances, now we are going to create only one so good to go with the next step if you need more instances with the same configuration you need to add the numbers like 3 to 5 whatever it depends upon your need.
    In the second step, you need to choose Network (VPC), In this step default, you will have default vpc, if you already created the VPC you can use that also. For my part, I am using default VPC.
    The third step need to choose a subnet, for the default we have three subnets so we need to choose any of one but the subnet must be a public subnet.
     In the fourth step, you need to choose the public IP to enable the option. If you are not enabled you cannot able to connect the ec2-instance publically or you need to attach the elastic IP.

4. Add Storage:
    In this step, we need to choose the storage type and size of the hard disk.

5. Add Tags
    Here you can add the tags with values, it is an optional step.
6. Configure Security Group
     For the security Group, we can create or use an existing security group. for the security group, we have two rules one was inbound another one outbound rules.
     If you are creating the Security Group you must need to give the name or it will take it as default name as launch-wizard. 
      In the security Group always outbound rules are enabled for all the traffic but inbound we need to add according to your requirement, for Linux default will create the ssh protocol allow for all IPV4 ips.  

7. Review 
    In this step, you need to review all the six steps which you have already done, if you want to change any configuration you can change if not okay.
8. Key Pair
    Choosing the Key pair is the main work because without the key pair cannot able to log in to the instance.
    If you want to create the new keypair click create a new key pair option and choose the Key pair Type RSA or ED25519, type the key pair name, and download it.

If you already have the key pair choose the existing key pair option and choose the key pair name and Launch the instance.

After clicking the Launch Instances option your instance creation process will start. it will take 5 minutes.

Once the Instance was created you need to check two important items, the instance state needs to change automatically pending to the available state and another one is a status check, so it needs to pass the two checks
1. System status checks 2. Instance status checks. 
Once all the checks got passed you will see like below.

Now we are good to use the Linux instance we need to instance from our local environment, there were plenty of options available one of the options was to connect our EC2 Instances using EC2-Instance Connect in AWS.  

For connecting the instance you can check our blog How to connect our EC2 Instances using EC2-Instance Connect in AWS.

----------------------------------------!!!! Happy Learning with Techiev !!!!!!!!---------------------------------

-------------------------Subscribe our Youtube Channel by clicking the below link---------------------- ----------------------------!!!!---------------------






Techie View: How to Create the First AWS EC2 Linux Instance in free-tier
How to Create the First AWS EC2 Linux Instance in free-tier
Techie View
Loaded All Posts Not found any posts VIEW ALL View Full Article Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy