Use Amazon EC2 with the Amazon CLI - Amazon Command Line Interface
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

This documentation is for Version 1 of the Amazon CLI only. For documentation related to Version 2 of the Amazon CLI, see the Version 2 User Guide.

Use Amazon EC2 with the Amazon CLI

An introduction to Amazon Elastic Compute Cloud

You can access the features of Amazon Elastic Compute Cloud (Amazon EC2) using the Amazon Command Line Interface (Amazon CLI). To list the Amazon CLI commands for Amazon EC2, use the following command.

aws ec2 help

Before you run any commands, set your default credentials. For more information, see Configure the Amazon CLI.

This topic shows short-form examples of Amazon CLI commands that perform common tasks for Amazon EC2.

For long-form examples of Amazon CLI commands, see Amazon CLI code examples repository on GitHub.