Installing the AWS CLI package

Last published : Jun 11, 2026
To install the AWS CLI package
  1. Enter the following commands sequentially:
$ curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
$ unzip awscli-bundle.zip
$ sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
  1. Create the Identity and Access Management (IAM) role.
For details, refer to the AWS documentation about Identity and Access Management.
  1. Configure the AWS CLI.
$ aws configure
  1. Verify that the CLIs are working properly.
$ aws ec2 describe-instances
Related information