You can create and manage your Amazon EC2 resources using the AWS Command Line Interface (AWS CLI) in a command-line shell. The AWS CLI provides direct access to the APIs for AWS services, such as Amazon EC2.
For syntax and examples for the commands for Amazon EC2, see ec2
in the AWS CLI Command Reference. You can also find these
examples in aws-cli/awscli/examples/ec2
Learn more about the AWS CLI
To learn more about the AWS CLI, see the following resources: