AWS CLI Commands

AWS CLI Commands



Amazon Web Services(AWS) is a cloud service from Amazon, which provides services in the form of building blocks, these building blocks can be used to create and deploy any type of application in the cloud.


It is a comprehensive, easy to use computing platform. The platform is developed with a combination of infrastructure as a service (IaaS), platform as a service (PaaS) and packaged software as a service (SaaS) offerings




Please refer this article to understand in detail about AWS.

In this article, we will be learning some of the most useful AWS EC2 CLI Commands.

Purpose
Commands
To start an AWS instance
aws ec2 start-instances --instance-ids
To view the status of instance
aws ec2 describe-instances

To stop an AWS instance
aws ec2 stop-instances --instance-ids

To terminate an AWS instance
aws ec2 terminate-instances --instance-ids

To display the subset of all available ec2 images

aws ec2 describe-images | grep ubuntu
To List user in different format

aws iam list-users –output table
To add storage to an instance
aws ec2 describe-volumes

To Reboot an AWS instance
aws ec2 reboot-instances --instance-ids

To change an AWS instance type
aws ec2 describe-instances

To Create New image
aws ec2 create-image --instance-id

To Delete an image
aws ec2 deregister-image --image-id

To Delete an snapshot of image
aws ec2 delete-snapshot --snapshot-id

To get an system log
aws ec2 get-console-output --instance-id





SHARE THIS

Author:

My Name is Ankur Jain and I am currently working as Automation Test Architect.I am ISTQB Certified Test Manager,Certified UI Path RPA Developer as well as Certified Scrum Master with total 12 years of working experience with lot of big banking clients around the globe.I love to Design Automation Testing Frameworks with Selenium,Appium,Protractor,Cucumber,Rest-Assured, Katalon Studio and currently exploring lot in Dev-OPS as well. I am currently staying in Mumbai, Maharashtra. Please Connect with me through Contact Us page of this website.

Previous Post
Next Post