Start your technical journey of AWS. As a programmer let’s work on AWS CLI



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

💥Installing AWS CLI :

✔Check if it has installed properly :

💥Configuring AWS CLI :

  • To, get those things you need to go to your AWS account from AWS Web Console. Then go to “IAM” service => click on “Users” => then click on “Add User” and create one user.
  • Then click on “Programmatic access” and if you read the description of this access you can see, it’s giving us “access key” and “secret key”. For reference follow the below mentioned screenshot…

Next click on “Tags” and give any desired tag. Then click on “review” and then click on “Create User”. Next it will provide you one option to see your Access Key and Secret Key. Don’t forget to “Download” the credentials by clicking on the download button for future reference.

Step 1:Login to AWS Using security credentials of IAM User we created .

aws configure

Step 2: Create a key pair

aws ec2 create-key-pair --key-name awscli

Step 3: Create Security group

aws ec2 create-security-group --group-name awsArth--description Arth

Step 4: Launch one EC2 Instance using above Key pair and Security Group

aws ec2 run-instances --instance-type _type_ --image-id ami_id --key-name key_name --security-group-ids   group_id  --count no_of_instance --subnet-id

Step 5: Create one EBS Volume and attach it to the EC2 Instance we launched

aws ec2 create-volume --volume-type volume_type --size volume_size --availability-zone AZ_name

Step 6 : Attach EBS Volume to EC2 Instance

aws ec2  attach-volume   --volume-id volume_id   --instance-id instance_id  --device device_name

Thank You for reading my Article!!!😊



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store