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
Step 2. Now set the permissions for this Account
Step 3. Review your account
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)
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
Step 2. configure AWS using cmd aws configure ,by providing AWS Access key , AWS secret Access key downloaded previously
III. Creating a key pair
below image show all the available key pairs,
now run the following cmd,
now let's check for the key pair created above with key-name aws_cli ,
We can see that a key_pair with name aws_cli is created
IV. Creating Security Group
The above image show all available 6 Security Group ,now let's run this command to create new security group
Security group with id - sg-0cf22877d72b1735 has been successfully created
V. Launching New Instance using new key_pair and security group
New instance with id 0f830843a9ec0ade9 is successfully launched
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),
Now create a new volume using aws-cli
new volume with id :- vol-0e883fc1f0eee4dad and 1GB storage is created
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
Now run attach-volume cmd to attach the EBS volume with the instance
The previously created volume(vol-0e883fc1f0eee4dad) is successfully attached with the instance (id 0f830843a9ec0ade9)