This post should help guide you through the process of installing and configuring AWS CLI (version 1) on Ubuntu (20.04).
To start, update your local packages by running the following command:
# update local packages ubuntu sudo apt-get update
You can install AWS CLI on Ubuntu by running the following command:
# install awscli ubuntu sudo apt-get install awscli
After the installation is complete, check the version of AWS CLI that was installed by running:
# check version of awscli installed aws --version
Once you have confirmed the version, you can run aws configure to set up your AWS profile. Your Access Key ID and Secret Access Key can be found and recreated in the AWS IAM Console, which I have covered in my previous post on installing and configuring AWS CLI on Windows.
# configure aws profile aws configure
For reference, here are the output config files – this is an area that gets touched a lot.
Once you have completed the configuration, you can run AWS CLI commands like the following example, which lists all the buckets in your AWS account that begin with the
Note that this is not the only way to install AWS CLI on Ubuntu, and this guide covers version 1 of AWS CLI.