The AWS CLI is a command-line interface for connecting to and managing your Amazon EC2 instances from the command line. It enhances the power and usability of the Amazon EC2 console. The AWS CLI provides a set of familiar and powerful tools that you can use to access and manage your Amazon EC2 resources. The AWS CLI also provides a secure and encrypted connection over HTTP and integrates with many of the Amazon EC2 tools, such as the Amazon EC2 console and the Amazon EC2 API. By default, the AWS CLI installs into a specific directory on your instance, such as:
To connect to the instance running the AWS CLI, make sure you log in to the EC2 instance with your AWS credentials. Details are provided in AWSEC2 API Reference . Once connected to your instance, you can issue basic system commands to verify that the instance is running, use the AWS CLI tools, find information about the instance, and remove it from your environment. More detailed information about the tools provided in the AWS CLI are provided below.
AWS CLI supports an idempotent session. The idempotent session is similar to the session that the Amazon EC2 console provides. The idempotent session keeps a separate instance of the AWS CLI available to you. If you close the window associated with an idempotent session, then the session is preserved and can be reused.
If you activated EC2 Serial Console for Linux, then you can use it to troubleshoot supported Nitro-based instance types. The serial console helps you troubleshoot boot issues, network configuration, and SSH configuration issues. The serial console connects to your instance without the need for a working network connection. You can access the serial console using the Amazon EC2 console or the AWS Command Line Interface (AWS CLI). d2c66b5586