Getting started with 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.
AWS-Shell :
aws-shell is a command-line shell program that provides convenience and productivity features to help both new and advanced users of the AWS Command Line Interface.
************************************************************************
Deploying basic infrastructure on AWS using AWS-CLI :
- Create a key-pair
aws ec2 create-key-pair --key-name aws1
- Create a security group
aws ec2 create-security-group --group-name aws1-sg --description aws1-sg
- Launch an instance using the above created key-pair and security group
aws ec2 run-instances --image-id ami-0e306788ff2473ccb --instance-type t2.micro --count 1 --subnet-id subnet-8ca0a9e4 --security-group-ids sg-083f0231c06f2f637 --key-name aws1
- Create an EBS volume of desired size
aws ec2 create-volume --availability-zone ap-south-1a --size 10
- Now, attach the above created EBS volume to your instance
aws ec2 attach-volume --device /dev/sdf --instance-id i-06cbb04cba2568b83 --volume-id vol-022cfd0097fbef700
*************************************************************************
THANK YOU