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
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:
AMI- AMAZON MACHINE IMAGE.
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).
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.
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.
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:
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----------------------
----------------------------!!https://www.youtube.com/@techieview729!!---------------------