Step 1: Install or upgrade and then configure the Amazon CLI
To call CodeDeploy commands from the Amazon CLI on a local development machine, you must install the Amazon CLI. CodeDeploy commands first became available in version 1.6.1 of the Amazon CLI. CodeDeploy commands for working with on-premises instances became available in 1.7.19 of the Amazon CLI.
If you have an older version of the Amazon CLI installed, you must upgrade it so the CodeDeploy commands are available. Call aws --version to check the version.
To install or upgrade the Amazon CLI:
-
Follow the instructions in Installing the Amazon Command Line Interface to install or upgrade the Amazon CLI.
-
To configure the Amazon CLI, see Configuring the Amazon Command Line Interface and Managing access keys for IAM users.
Important When you configure the Amazon CLI, you are prompted to specify an Amazon Region. Choose one of the supported regions listed in Region and endpoints in the Amazon General Reference.
-
To verify the installation or upgrade, call the following command from the Amazon CLI:
aws deploy help
If successful, this command displays a list of available CodeDeploy commands.