AWS -Command Line Interface

AWS -Command Line Interface

🔅 Create an IAM user

🔅 Started with AWS - CLI (configuration)  

🔅 Create a key pair 

🔅 Create a security group 

🔅 Launch an instance using the above created key pair and security 

🔅 Create a EBS volume

🔅 Attach this volume with the Instance


I. Creating IAM User :

Step 1. login to your AWS account and go to IAM services ,create New user

No alt text provided for this image

Step 2. Now set the permissions for this Account

No alt text provided for this image

Step 3. Review your account

No alt text provided for this image

Step 4. click on Create user ,download the credential csv which would be further required for AWS - CLI (e.g. access key ID ,Secret access key)

No alt text provided for this image

II. Using AWS - CLI and AWS configuration

Step 1. To begin with aws cli first we need to install aws-cli/2.0.61 Python/3.7.7 Windows/10 exe/AMD64

No alt text provided for this image

Step 2. configure AWS using cmd aws configure ,by providing AWS Access key , AWS secret Access key downloaded previously

No alt text provided for this image

III. Creating a key pair

below image show all the available key pairs,

No alt text provided for this image

now run the following cmd,

No alt text provided for this image

now let's check for the key pair created above with key-name aws_cli ,

No alt text provided for this image

We can see that a key_pair with name aws_cli is created

IV. Creating Security Group

No alt text provided for this image

The above image show all available 6 Security Group ,now let's run this command to create new security group

No alt text provided for this image

Security group with id - sg-0cf22877d72b1735 has been successfully created

No alt text provided for this image

V. Launching New Instance using new key_pair and security group

No alt text provided for this image

New instance with id 0f830843a9ec0ade9 is successfully launched

No alt text provided for this image

VI. Creating new EBS volume

let's check all the available volumes (total 6 volumes available and in use implies are attached to the instances),

No alt text provided for this image

Now create a new volume using aws-cli

No alt text provided for this image

new volume with id :- vol-0e883fc1f0eee4dad and 1GB storage is created

No alt text provided for this image

VII. Attach volume to Instance

Now this EBS volume need to be attached with the new launched instance, but before that let's view the current storage/ volume of the instance

No alt text provided for this image

Now run attach-volume cmd to attach the EBS volume with the instance

No alt text provided for this image

The previously created volume(vol-0e883fc1f0eee4dad) is successfully attached with the instance (id 0f830843a9ec0ade9)

No alt text provided for this image

THANK YOU


To view or add a comment, sign in

More articles by Naresh Kumar

  • Image processing using python

    Task Description 📄 🔅 Task 35.1 📌 Create an image by yourself Using Python Code 🔅 Task 35.

  • User-Management using Shell Script

    This is a bash shell script consisting of a menu-driven program for managing user and contain following functionality…

    3 Comments
  • AWS CloudFront

    Task 6 🔰 Create High Availability Architecture with AWS CLI 🔰 🔅The architecture includes- - Webserver configured on…

  • Idempotent nature of Ansible

    Task 11 🔰 11.3 Restarting HTTPD Service is not idempotence in nature and also consume more resources suggest a way to…

  • Hadoop & Ansible Integration

    🔰 11.1 Configure Hadoop and start cluster services using Ansible Playbook As the task suggests we are going to create…

  • Task 13 (Networking)

    A computer network is a group of computers that use a set of common communication protocols over digital…

  • Task 7

    Task 7🌀 7.1: Elasticity Task 🔅Integrating LVM with Hadoop and providing Elasticity to DataNode Storage 🔅Increase or…

  • Jenkins - Use-cases

    Android Android projects are fundamentally no different from how other types of software development projects might…

  • Azure Kubernetes Service (AKS)

    What is Azure? Azure is a cloud computing platform and an online portal that allows you to access and manage cloud…

  • Neural Network

    To understand Neural Network we first need to understand the working mechanism of the human brain, Human brain The…

Others also viewed

Explore content categories