Building Cloud Infrastructure Using AWS CLI..

Building Cloud Infrastructure Using 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…
No alt text provided for this image
No alt text provided for this image
  • 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 .


No alt text provided for this image

Step 2: Create a key pair

For creating Key Pair we have command as :

aws ec2 create-key-pair --key-name task4key
No alt text provided for this image
No alt text provided for this image

Step 3: Create Security group

To create Security group we have the following command :

No alt text provided for this image

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

To launch ec2 instance AWS CLI has command as :

No alt text provided for this image

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

To Create EBS Volume AWS CLI has command as :

No alt text provided for this image

Step 6 : Attach EBS Volume to EC2 Instance

No alt text provided for this image

Thank You for reading my Article 😊



To view or add a comment, sign in

More articles by Tejas Pimple

  • High Availability Architecture with AWS CLI

    🔰 Link to the previous article showing how to get started with AWS CLI - https://www.linkedin.

    1 Comment
  • Integrating Amazon RDS with WordPress

    Task Description 📄 🔅 Create an AWS EC2 instance 🔅 Configure the instance with Apache Webserver. 🔅 Download PHP…

    1 Comment
  • Case Study On AWS SQS

    What is AWS SQS? Amazon Simple Queue Service (SQS) is a fully managed message queuing service that enables you to…

    5 Comments
  • AWS- Case Study on Xiaomi

    What is Cloud Computing ? Cloud computing is the on-demand delivery of IT resources over the Internet with…

    6 Comments

Explore content categories