Using AWS Services through AWS CLI

Completed Some Beginner Task over AWS using AWS CLI
aws --version
aws configure
aws ec2 create-key-pair --key-name MyKeyPair --query 'KeyMaterial' --output text | out-file -encoding ascii -filepath MyKeyPair.pem
chmod 400 .\MyKeyPair.pem
aws ec2 create-security-group --group-name Security_Group_cli --description "CLI security group"
aws ec2 authorize-security-group=ingress --group-id <group-id> --portocol tcp --port 22 --cidr <Public IPs/CIDR>
aws ec2 describe-security-groups --group-ids <group ID>
Showing Security group created successfully
aws ec2 run-instances --image-id  AMI ID --instance-type instance type --key-name keyname --security-group-ids security group id --tag-specification 'ResourceType=instance,Tags=[{Key=Name,Value=<Instance name>}]'
aws ec2 create-volume --size <sizeofvolume> --availability-zone <availabilityzone>
aws ec2 describe-volumes --volumes <Volume ID>
aws ec2 attach-volume --volume-id volume_id_of_block --instance-id instance_id  --device /dev/sdb
aws ec2 modify-volume --region <regionName> --volume-id <volumeId> --size <newSize> --volume-type <newType> --iops <newIops>
Showing disk size before running the command
Compare the above pics using the Volume ID And see that the Size is increased after the command is run

--

--

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