Managing AWS through CLI
The AWS Command Line Interface (CLI) is for managing your AWS services from a terminal session on your own client, allowing you to control and configure multiple AWS services and implement a level of automation.
With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts.
we need to download AWS CLI Version 2 and then we’ll be ready to use command line interface
you can download it from here:
https://awscli.amazonaws.com/AWSCLIV2.msi
✅Firstly we have to configure AWS account using Access and Secret Keys
We have to provide keys to configure because unlike human, machines use keys to login instead of using username and password.
✅Creating a Key pair
Here you can go to AWS GUI and verify whether the Key has been created or not.
✅Creating Security Group
Command : aws ec2 create-security-group — group-name awscsasg — description “awscsasg”
Now we can see it is created.
After creating security group we also have to add inbound rules into it.
✅Creating a Ec2 instance using the key pair and the security group created
we can check it manually also whether it is running or not.
✅Creating 1gb EBS Volume and attaching it to the Instance launched.
Now we can see that this Volume is “in use” which means it is now attached to instance.
And this is all we have to do in this.
Hope you liked this blog, in case any suggestions then please suggest me.
Thank you !!!