The AWS Command Line Interface (AWS CLI) is a unified tool to manage your AWS services. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts.
Although not a very common scenario, some users may need to interact with AWS cloud storage in order to download or upload data used in their workflows on the HPC facilities.
First, create a folder to store the AWS download file, and then download the zipped software using wget:
wget
$ mkdir downloads $ cd downloads $ wget https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip Saving to: ‘awscli-exe-linux-x86_64.zip’ 100%[==========================================================>] 70,490,916 67.0MB/s in 1.0s $ ls -l total 68844 -rw------- 1 n1234 mygroup 70490916 Apr 30 20:19 awscli-exe-linux-x86_64.zip $
Now extract the aws-cli software from the .zip using the unzip command:
.zip
unzip
$ unzip awscli-exe-linux-x86_64.zip ... ... ... $ cd aws $ ls -l otal 80 drwxr-xr-x 6 n1234 mygroup 4096 Apr 30 18:26 dist -rwxr-xr-x 1 n1234 mygroup 4047 Apr 30 18:19 install -rw-r--r-- 1 n1234 mygroup 1465 Apr 30 18:19 README.md -rw-r--r-- 1 n1234 mygroup 68282 Apr 30 18:19 THIRD_PARTY_LICENSES $
Finally, run the aws-cli install script to put the tools in the correct location. Note that in the example below we are using $HOME/bin and $HOME/aws-cli - i.e. directories in our HOME area. If you are needing the aws-cli tools in a project folder, then adjust the paths to suit your project.
install
$HOME/bin
$HOME/aws-cli
$ ./install --bin-dir $HOME/bin --install-dir $HOME/aws-cli You can now run: $HOME/bin/aws --version $
You must give a path to a folder which you have permissions to write to. If you leave out the –bin-dir and –install-dir parameters the aws-cli tools will try to install to a system folder; usually /usr/local, which you do not have permissions to install to.
–bin-dir
–install-dir
/usr/local
Assuming you installed to $HOME/bin, then you can run the aws-cli tools as follows:
$ $HOME/bin/aws usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters] To see help text, you can run: aws help aws <command> help aws <command> <subcommand> help aws: error: the following arguments are required: command $
For example:
$ $HOME/bin/aws --version aws-cli/2.27.5 Python/3.13.2 Linux/3.10.0-1160.125.1.el7.x86_64 exe/x86_64.rhel.7 $
Please note that we cannot assist in the use of aws-cli, configuration and use of the tool is outside the scope of what we can currently offer. Please consult the Amazon documentation, starting with:
Back to Advanced Software index
Table of Contents
Main Content Sections
Documentation Tools