CLI or Command Line Interface provides a lot of power to the AWS that we cannot do in the Web UI provided by the AWS.

In this task we have to:

  1. Create a key pair
  2. Create a security group
  3. Launch an instance using the above created key pair and security group.
  4. Create an EBS volume of 1 GB.
  5. The final step is to attach the above created EBS volume to the instance you created in the previous steps.

Create EBS Volume and EC2 Instance in the same Availability Zone.

We can see that there are now two volumes attached to our instance.