Blog

Blog

AWS EC2 CLI Commands in Cheat sheet

AWS EC2 CLI Commands in Cheat sheet

AWS EC2 CLI Commands

AWS EC2 CLI Commands

Introduction:

Amazon Elastic Compute Cloud (EC2) is a web service that provides resizable computing capacity in the cloud. The EC2 Command Line Interface (CLI) is a set of commands that you can use to control and manage your EC2 instances.

Some common EC2 CLI commands include:

  • ec2-describe-instances: This command lists all of your EC2 instances, including their current state, IP address, and launch time.
  • ec2-run-instances: This command launches a new EC2 instance with the specified parameters, such as the AMI, instance type, and key pair.
  • ec2-start-instances: This command starts one or more stopped instances.
  • ec2-stop-instances: This command stops one or more running instances.
  • ec2-terminate-instances: This command terminates one or more instances and releases their associated resources.

You can also use the EC2 CLI to manage other resources such as Amazon Elastic Block Store (EBS) volumes, security groups, and key pairs. These commands are executed in your local machine, but they interact with the AWS EC2 services, it’s important to have your AWS credentials set up correctly before running any command.

To View the printable PDF of this sheet

The EC2 Command Line Interface (CLI) is a powerful tool that allows you to control and manage your Amazon Elastic Compute Cloud (EC2) instances from the command line.

The CLI provides a variety of commands that can be used to perform actions such as launching, stopping, and terminating instances, as well as managing other resources such as EBS volumes, security groups, and key pairs. By using the EC2 CLI, you can automate and streamline your EC2 management tasks, and integrate them into your existing workflow. However it’s important to have your AWS credentials set up correctly before running any command.

Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
Click outside to hide the comparison bar
Compare

Subscribe to Newsletter

Stay ahead of the rapidly evolving world of technology with our news letters. Subscribe now!