Launching an Instance through AWS Command Line Interface - CLI
Let us start with the Definition of AWS's CLI...!
AWS CLI is a unified tool to manage all the AWS Services from Command-Line.
After Installing the AWS CLI, create an IAM user with a power-user policy and pen-down the Access-key and Secret-key of that user, we need this for the next step!
1) Configuring AWS:
Provide the Access-key and Secret-key of the IAM user. Give the region only and then enter.
2) Creating Key Pair:
In CLI it works in this way!
We can also check this in the Web App of AWS by tallying the value of ID. It appears in this way!
3) Creating Security Group:
In CLI it works in this way!
We can also check this in the Web App of AWS by tallying the value of ID. It appears in this way!
4) LAUNCHING THE INSTANCE:
Now as we have created a key-pair and security-group we are good to go! Here I choose Rhel 8 instance. In CLI it works in this way!
We can also check this in the Web App of AWS by tallying the value of Instance ID. It appears in this way!
5) Creating an EBS Volume:
In CLI it works in this way!
6) Finally Attaching the EBS Volume to the Instance:
In CLI it works in this way!
We can check our overall task in Web App too! It appears in this way!
As we can see clearly the volume is attached to the Instance and is in use. We can confirm by checking the value of ID's to understand in a feasible way!
Nice work ✨