Using AWS Services through AWS CLI

Task Description:

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

Tools Used:

AWS CLI

Task Procedure:

Installation of AWS CLI to our system by downloading and installing the software from the AWS website

For confirmation of installation, we need to run the command

This indicates that AWS CLI is successfully installed.

For Configuring the AWS CLI we have to provide it with the access key and secret key of our AWS account to login through the account using CLI.

For Creating Key Pair

AWS creates the KeyPair in .pem extension for ssh using system third party software we require to convert from .pem to .ppk. [One of the software which I used was puttygen]

Once you are done with Creating the KeyPair

Change mode of execution of keypair

Now Let’s go to the next step to create a security group using CLI

The command for this is

Adding Rules to Security Group for ssh connection to Instance

For Launching Instance using Key pair and security group

create an EBS volume of 1 GB.

For this, we give information about the availability zone, volume of other information according to our use cases.

Command is

Using this command we can fetch the complete info about any Volume

For confirmation, we can check GUI

Let’s move on to the final step

To attach the above created EBS volume to the instance created in the previous steps.

The requirement for this is the volume id of the EBS volume we have created and the Instance ID to which we want to attach to this volume.

The command for this is

Confirming that the Instance which we launched have two disks connected

To modify the Root Disk Size

Iops → Input-output speed per second from disk

TASK Successfully Accomplished

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store