Using 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.

Using 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 Configuring 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.