Saturday, 22 February 2020

AWS Command Line Interface (AWS CLI) - Part 1

The AWS Command Line Interface (AWS CLI) is an open source tool that enables you to interact with AWS services using commands in your command-line shell.

The AWS CLI is available in two versions:

  • Version 2.x – The current, generally available release of the AWS CLI. This version does include some "breaking" changes from version 1 that might require you to change your scripts so that they continue to operate as you expect. For a list of new features and breaking changes in version 2, see Breaking Changes – Migrating from AWS CLI version 1 to version 2
  • Version 1.x – The previous version of the AWS CLI that is available for backwards compatiblity.
The command prompt in your favorite terminal program:

Linux shells - Use common shell programs such as bash, zsh, and tcsh to run commands in Linux or macOS. 
Windows command line - On Windows, run commands at the Windows command prompt or in PowerShell. 
Remotely - Run commands on Amazon Elastic Compute Cloud (Amazon EC2) instances through a remote terminal program such as PuTTY or SSH, or with AWS Systems Manager.

The AWS CLI provides direct access to the public APIs of AWS services. You can explore a service's capabilities with the AWS CLI, and develop shell scripts to manage your resources. Or, you can take what you learn to develop programs in other languages by using the AWS SDKs. 

In addition to the low-level, API-equivalent commands, several AWS services provide customizations for the AWS CLI. Customizations can include higher-level commands that simplify using a service with a complex API. For example, the aws s3 commands provide a familiar syntax for managing files in Amazon Simple Storage Service (Amazon S3).

AWS CLI version 2 

AWS CLI version 2 is the most recent major version of the AWS CLI and supports all of the latest features. Some features introduced in version 2 are not backward compatible with version 1 and you must upgrade to access those features. AWS CLI version 2 is available to install only as a bundled installer. Although you might find it in some package managers, these are not produced or managed by AWS and are therefore not official and not supported by AWS. We recommend that you install the AWS CLI from only the official AWS distribution points, as documented in this guide.

AWS CLI version 1

AWS CLI version 1 is the original AWS CLI, and we continue to support it. However, major new features that are introduced in AWS CLI version 2 might not be backported to AWS CLI version 1. To use those features, you must install AWS CLI version 2.

Migrating from AWS CLI version 1 to version 2

If you ran commands or scripts with AWS CLI version 1 and you are considering migrating to AWS CLI version 2, see Breaking Changes – Migrating from AWS CLI version 1 to version 2 for a description of the changes that you should know about.

No comments:

Post a Comment