AWS CLI

AWS CLI

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

1>To create a key Pair in CLI mode

No alt text provided for this image

The key pair has been created in AWS as shown below

No alt text provided for this image

When launched, Amazon EC2 instances must be associated with a security group, which acts as a stateful firewall. You have complete control over the network traffic entering or leaving the security group, and you can build granular rules that are scoped by protocol, port number, and source/destination IP address or other security groups. By default, all egress traffic from the security group is permitted. However, ingress traffic must be configured to allow the appropriate traffic to reach your instances.

2>Create a security Group

No alt text provided for this image

Security group is created in AWS as shown below

No alt text provided for this image

Ingress traffic rules to the security group is shown below

No alt text provided for this image

Now we can see this in our GUI AWS.

No alt text provided for this image

Now,we will create an ec2 instance using the same key-pair and security group

No alt text provided for this image

Now we can check if the instance started running in AWS webUI

No alt text provided for this image

Next step is to create the EBS volume of 1 GB

No alt text provided for this image

To attach EBS volume with instance

No alt text provided for this image

Voila...Attached!!!

To view or add a comment, sign in

Others also viewed

Explore content categories