✍How To Install And Use AWS CLI :-

Priya Soni
5 min readOct 13, 2020

✍Task Description — AWS 👨🏻‍💻

🔅 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.

All the above steps must be performed using AWS CLI.

✍What is AWS CLI and Why we used it ?

The AWS Command Line Interface (CLI) is a unified tool to manage your AWS services. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts.

👉STEP : 1

Download the Aws Cli using above link which is given below:-

👉Next Step….

👉Next Step….

👉Next Step….

👉Next Step….

👉lets finish the configuration for moving our next steps…

Now , We can also login in AWS Account using AWS GUI.

👉Next Step….

👉Next Step….

👉Next Step….

👉Next Step….

👉For configuring the Aws using CLI:-

Now ,We can see our Aws CLI is successfully configured.

Than we can move to create user in AWS and configure the AWS CLI using above command by passing access key ,secret key, region and format.

✍What is IAM ?

Identity and access management:

Identity and access management (IAM) is a framework of business processes, policies and technologies that facilitates the management of electronic or digital identities. With an IAM framework in place, information technology (IT) managers can control user access to critical information within their organizations.

👉Next Step….

👉Next Step….

👉Next Step….

👉Next Step….

👉Next Step….

👉Next Step….

👉Next Step….

👉Next Step….

👉Next Step….

👉In AWS CLI we can run aws configure command:-

👉aws configure

In Command prompt we can run this command :-

👉aws ec2 create-key-pair help

👉aws ec2 create-key-pair — key-name aws_key1

👉We can also go to AWS GUI for checking key is successfully created or not.

👉We can run above command in aws cli:-

👉We can again go to AWS GUI:-

👉Next Step….

👉Next Step….

👉Next Step….

👉Next Step….

👉Next Step….

👉We can run above command in AWS CLI for running the instances using their ids:-

For more option Press Spacebar key in your keyboard .

👉Next Step….

👉Next Step….

👉Next Step….

👉We can run above command in AWS CLI for creating a new volume :-

👉For confirmation we can also go to AWS GUI and checked it here volume is successfully created or not.

👉We can also take the help for attaching volume in ec2 instances.

👉Next Step….

👉Next Step….

👉This command is used for attaching volume in ec2 instances.

👉Guys, we can also go to AWS GUI and Checked Volume is attached or not.

👉Here, We can see volume is successfully attached because we can easily see their status which is in-use.

--

--