Accessing AWS through CLI(Command Line Interface)

Accessing AWS through CLI(Command Line Interface)

For any account to log in into that account you need login ID and password same in case of AWS when you are accessing it through your command prompt. In AWS language login ID and password also called as "Access Key" and "Secret Access Key".

Then how to create these keys?

Let me show you,

No alt text provided for this image

In above picture or in AWS management console there is one service called IAM (Identity and Access Management) using this service you have to create one user for to create a user get help with following pictures.

No alt text provided for this image
Go to the Add user

Click on Add user to create a user. here I have already created one user.

No alt text provided for this image

At this step you have to configure your user like name, permissions etc.

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

so finally you have created your user now note down the Access Key ID and Secret Access key this will help you to login into AWS through CLI.

Now, open your Command Prompt.

No alt text provided for this image
No alt text provided for this image

In above step use your Access key, Secret Access key for login and don't forgot to write region name.

No alt text provided for this image

In above picture I have created one instance using commands. For that you need ami-id, subnet id, security group id your key. These things you have to find manually.

No alt text provided for this image

In this picture I have created EBS volume of 1 GB. In this command you have to write availability zone and size of storage.

No alt text provided for this image

Here you will see that EBS volume of size 1 GB has been created.

No alt text provided for this image

And finally I have attached that 1 GB storage to my instance that I have created previously. To attach this storage you need to provide root device name, instance id, and volume id.

I hope that above article will increase you knowledge.

Thank You!!!!

Sarvesh Bhalerao

Software Developer @NielsenIQ VIIT, Pune'23

4 年

????????

要查看或添加评论,请登录

社区洞察

其他会员也浏览了