Using AWS-CLI For Basic Operation on AWS

Using AWS-CLI For Basic Operation on AWS

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.


What is AWS? 

Amazon Web Services (AWS) is a secure cloud services platform, offering to compute power, database storage, content delivery, and other functionality to help businesses scale and grow. Running web and application servers in the cloud to host dynamic websites.

Since we know that AWS is a technology and to use any technology like AWS, we have three ways:

  • Using WebUI
  • Through a program/code
  • Using CLI (Command Line Interface)

In this article, I will be performing each and every step using the AWS CLI.

1.     Creating a Key Pair

No alt text provided for this image

And the key pair has been successfully created:

No alt text provided for this image

2.     Creating an EBS (Elastic Block Storage ) Volume of size 1 Gb :

No alt text provided for this image

3.     Creating a security group:

No alt text provided for this image

Security Group Created:

No alt text provided for this image

Providing ingress traffic rules to the security group

No alt text provided for this image

And here we have added ssh

No alt text provided for this image

4.     Now, we create an EC2-instance using the CLI. We have used the same key-pair and the security group that I created in the above steps. 

No alt text provided for this image

EC2 – instance created

No alt text provided for this image


5.     Now, we attach the EBS volume (created earlier) with the EC2 instance we just created

No alt text provided for this image

EBS volume attached:

Thank You...

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

Ankit Pramanik的更多文章

社区洞察

其他会员也浏览了