Arth task3-AWS Cloud using CLI

Arth task3-AWS Cloud using 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.

What is AWS CLI?

The AWS Command Line Interface (CLI) is a unified tool to manage your AWS services. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts.

To use AWS Cloud through CLI only Prerequisite is to Install the AWS CLI SDK tool.

Step:1 Create an IAM user

No alt text provided for this image


No alt text provided for this image

Programmatic Access for CLI and AWS Management Console access for WEBUI

Set Permissions to the user:

Power User access has the power for all services except the billing account and IAM.

Administration access has the  power for all services except the billing account.

No alt text provided for this image

Successfully user is created

No alt text provided for this image

Step-2: Download AWS CLI Software and edit the Environment variable

No alt text provided for this image

Step-3: Open the command prompt and do the following steps

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

Enter the access ID and Secret ID and Availability zone

  1. >>Create a key pair
No alt text provided for this image


No alt text provided for this image

>> Create a Security group

No alt text provided for this image


No alt text provided for this image

>>3.Launch an instance using the above created key pair and security group.

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


aws ec2 run-instances help
aws ec2 run-instances --security-group-ids   g_id   --instance-type _type --image-id ami_id   --key-name key_name  --count no_of_instance


No alt text provided for this image

4.>>Create an EBS volume of 1 GB.

After the EC2 instance launch, we can create an EBS volume, and then we have to attach it command for it is first created then attachment and then detachment of EBS with instances.

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

Attach Volume to the ec2 instance

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

>>Stop and Terminate Instance

No alt text provided for this image

In this way, I successfully completed the TASK-3 of ARTH.




To view or add a comment, sign in

More articles by Benjamin Francis

  • Industry Use Case on Automation Using Ansible-Demo (Pratical Implementation)

    Hello connection👏 Today am sharing some information what we learnt at 28thDecember2020 webinar First I would like…

  • ARTH Task 6

    Task Description ------------------------------------------------------------- Create High Availability Architecture…

    1 Comment
  • How does Facebook uses Machine learning

    What comes first to mind when you think about social networking? It’s Facebook of course! There is even a movie called…

Explore content categories