HOW TO LAUNCH NEW INSTANCE WITHOUT WEBUI?
In WebUI creating an account in AWS and launching the instance is quite easy and unchallenging, so why not we try launching an instance from CLI .
Thinking about launching an instance through CLI might seem difficult but it is not as much as you think. We can do that in few simple steps but first we'll learn why we use CLI over WebUI .
- CLI is much more faster than WebUI, we only have to write the commands to get the output at a faster rate.
- In WebUI we cannot launch more than 1 instance at the same time but in CLI we just have to provide the count to launch the instances.
- We can write all the required data into the same command without moving to other pages which is not possible in WebUI as we have to move further checking the data.
Lets start with creating and launching an instance
We will follow the steps given below:
📌 Create a key pair
📌 Create a security group
📌 Launch an instance using the above created key pair and security group.
📌 Create an EBS volume of 1 GB.
📌 The final step is to attach the above created EBS volume to the instance you created in the previous steps.
To create a key pair:
We need to ask for help from AWS ec2
It will provide us with all the ec2 commands --
Find the key pair command >>
To create security group:
Again take help from ec2 and find the command for security groups then take help and know about all the required elements as we have done to create a key pair.
Very useful information 👍🙏